Тёмный

Create NFT Generative Art with Python! (Full Tutorial) 

pixegami
Подписаться 45 тыс.
Просмотров 100 тыс.
50% 1

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 156   
@stevecampbell8993
@stevecampbell8993 2 года назад
Although I'm familiar with Python, your method of pedagogy is just fabulous and it is seriously criminal that you neither have the views nor the subscribers that you actually deserve. But I do see a great future for this channel and I will be a silent cheerleader for your channel's success 🙌 👍
@pixegami
@pixegami 2 года назад
Thank you! I really appreciate hearing that feedback. Also - I had to look up what "pedagogy" means (for anyone who doesn't know, it's "the method and practice of teaching").
@vijaydas4321
@vijaydas4321 2 года назад
Ll
@bblevins
@bblevins 9 месяцев назад
Agreed! I also like that I learned a new word today. Pedagogy!
@bblevins
@bblevins 9 месяцев назад
This Generative Art video was so much fun to watch. Please consider doing more videos like this.
@pixegami
@pixegami 9 месяцев назад
Thank you so much for the tip and the comments 🙏 I really appreciate it, and I'm glad you enjoyed the video :)
@bblevins
@bblevins 9 месяцев назад
I'm only half way thru the video and I'm loving it. I hope it doesn't end.
@ichome
@ichome 2 года назад
I didn't overlook how skillfully you defined if __name__ == '__main'. You wouldn't (maybe you would) believe how many tutorials and articles fail to execute on this definition effectively and succinctly. Nice tangential value add!
@pixegami
@pixegami 2 года назад
Ah thanks for the comment :) I never know if it’s worthwhile to go on that kind of tangent, so I appreciate the feedback.
@potowatax
@potowatax 2 года назад
Wow... in a only shot, I learned more than a tons of tutorial I watched. Very useful! Thanks a lot!
@pixegami
@pixegami 2 года назад
I'm glad it helped! I appreciate the feedback!
@AK-in3qm
@AK-in3qm 2 года назад
Damnn man, I learned so much from this single tutorial. Love from Banglore India
@pixegami
@pixegami 2 года назад
I'm glad to hear that!
@richardsmith9906
@richardsmith9906 2 года назад
For anyone doing it using the most up to date PIL version you'll need to change the resize and antialias line to something like this image = image.resize((target_size_px, target_size_px), Image.ANTIALIAS) Great content BTW!!!
@Epipedobatideo
@Epipedobatideo Год назад
image = image.resize((target_size_px, target_size_px), Image.LANCZOS)
@MidasMusicProd
@MidasMusicProd 2 месяца назад
10.0.0 removed ANTIALIAS and replaced it with LANCZOS. The new line is image = image.resize((target_size_px, target_size_px), Image.Resampling.LANCZOS)
@jlee3361
@jlee3361 3 года назад
I see a future 100k RU-vidr here
@pixegami
@pixegami 3 года назад
Thanks for the encouragement :)
@koboss_
@koboss_ 3 года назад
same here
@mmurray4043
@mmurray4043 Год назад
He’s very good, he’s a skilled programmer but also his delivery in explaining is spot on. Very rare to get both.
@redundantp
@redundantp 2 года назад
Nice video!! Just started with python a few days ago but i managed to follow you in every way ! :)
@khrcompany224
@khrcompany224 2 года назад
Masterpiece, and it is seriously criminal that you neither have the views nor the subscribers that you actually deserve But best of luck for the future. we need more videos about generating NFTs from base characters by python coding ..please...please.Love from PAKISTAN
@Jamaal199
@Jamaal199 3 года назад
I would have loved to see the gpt3, react, and especially erc 721 sections too!!! Great video sir!!!!
@pixegami
@pixegami 3 года назад
Thank you and noted! I will probably do a technical deep dive video on what I learn about NFTs as well so maybe that would fit in there. For GPT-3 stuff, I have another video that explores the API a bit more (using poetry and creative writing: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-r3zKcL0iGeA.html)
@Gaboch8719
@Gaboch8719 2 года назад
You're a real Pro! Congratulations and keep going sharing your wisdom! The more you share the wiser you'll become.
@pixegami
@pixegami 2 года назад
That's the plan!
@eillioniscreating
@eillioniscreating 3 месяца назад
Really fantastic make more projects with python please
@damatter3314
@damatter3314 2 года назад
@Pixegami this is amazing. Many thanks to you!
@rohanlokhande4538
@rohanlokhande4538 3 года назад
Best NFT tutorial out there. Recommendation: If possible will you also start programming tutorial too 💯
@pixegami
@pixegami 2 года назад
Thanks :)
@stonedizzleful
@stonedizzleful 2 года назад
Fantastic tutorial dude! Thank you!!!
@pixegami
@pixegami 2 года назад
Glad you liked it!
@MisterPenguin42
@MisterPenguin42 2 года назад
You deserve a million subs, Vegemite bro
@namkhelavan
@namkhelavan 2 года назад
Hey, i subscribe you to boot your confidence please not give up, continue your Hutsle one day you have millions 9f subscribers, God bless you .
@tech-wit
@tech-wit 3 года назад
Very good illustration
@hasithashan
@hasithashan 2 года назад
Awesome work dude!
@jasenhartford85
@jasenhartford85 2 года назад
Great work, thank you for sharing!
@benhajali
@benhajali 2 года назад
First time using python, let's see if i can follow till the end! :D
@rob1n970
@rob1n970 3 года назад
Nice Guide! Thank you :) Maybe more with other art or ideas :)
@M19PL1XX
@M19PL1XX 2 года назад
MY MANN YOURE A LEGEND
@mattymallz4207
@mattymallz4207 2 года назад
Fantastic video! Thank you for sharing. I’ve happily subscribed. It’s only fair. You taught me for free :)
@DominicProMax
@DominicProMax 2 года назад
I love your keyboard
@pixegami
@pixegami 2 года назад
Thanks! It's a K2 Keychron wireless compact. It looks nice on the desk but I actually prefer a larger layout. The keys are MX-Cherry Red. They're OK to type with. Personally I think blue-switches are the most satisfying, but it's probably too loud for the video (and for my house mates).
@stephenkrus
@stephenkrus 2 года назад
Dude! You're a #Legend 👑 for this! 🚀✨👍
@sallaka87
@sallaka87 2 года назад
Hasta yo lo entendí y no sé inglés wtf eres muy bueno! estoy empezando en Python y no manejo ni 1% de ello pero tú lo haces muy fácil quiero ser como tú ☺️
@pixegami
@pixegami 2 года назад
That's amazing! I can't read Spanish so I used Google translate to read your message. Thank you, I'm glad the video made sense for you and I look forward to sharing more awesome stuff in the future.
@jamesyangmusic
@jamesyangmusic 2 года назад
Great video, thanks!
@lebesgue-integral
@lebesgue-integral 2 года назад
Very cool video. Thanks
@ZakriaYousafzaii
@ZakriaYousafzaii 2 года назад
Man you earn new subscriber.
@pixegami
@pixegami 2 года назад
Awesome, thank you!
@D35H4N
@D35H4N 2 года назад
Thank you so much for this 🔥🍻
@jorgechavez2735
@jorgechavez2735 2 года назад
is a pleasure watch you program! I understand a little bit of python, my head explodes but is like watching you do art! thank you!, can you make a video showing how to use OpenAI GPT-3 To name the files? thanks
@pixegami
@pixegami 2 года назад
Thank you! I plan to do more art-coding videos soon. I have two other videos on Open AI (one is a generic exploration of its ability, the other one "Build an AI-driven SaaS" actually shows more hands-on how to use Open AI. The way I used it to generate names isn't too different from what I did in that latter video.
@ssyedyaseens
@ssyedyaseens 2 года назад
Great tutorial!!! Would love to see more from you
@pixegami
@pixegami 2 года назад
More to come!
@architect13011
@architect13011 3 года назад
Thanks for great job and amazing digitall art.
@uskumru3106
@uskumru3106 2 года назад
Thanks 🤠🙏
@__________________________6910
@__________________________6910 2 года назад
1 k soon keep it up bro
@igorym8064
@igorym8064 2 года назад
This is amazing , can you make another video explaining how to upload all NFTS to OpenSea and put them price. Please !
@WistrelChianti
@WistrelChianti 2 года назад
Good tutorial for learning python and indeed image drawing/manipulation in python but I'd loose the NFT from the title because this doesn't cover anything about how to make NFTs... only images.
@pixegami
@pixegami 2 года назад
That's a good suggestion - but the actual project code does have an NFT deployment contract included. It just wasn't used or covered because ETH gas fees were really expensive :( I kept the title because I think it helps people with the intent to generate NFT art discover this more easily.
@nrg007
@nrg007 3 года назад
Good work. thanks
@klapitall
@klapitall 2 года назад
I think honestly that this is one of the best tutorial videos I ever saw.👏👏👏 Is it possible to generate multiple nft arts from one existing picture?
@pixegami
@pixegami 2 года назад
Thanks! As for your question - do you mean like have an image be used to generate a variety of different images? Or use one image and publish it as several different NFT tokens? Either way, both are possible. But what would your intention be behind this?
@klapitall
@klapitall 2 года назад
@@pixegami use one image to create multiple nft's..
@blindcast4929
@blindcast4929 2 года назад
Great video
@oswwwaldotc
@oswwwaldotc 3 года назад
Great, thanks 🇲🇽
@patrickk5248
@patrickk5248 3 года назад
very nice video! keep going :)
@crdvideos3841
@crdvideos3841 2 года назад
this is amazing! Thank you! Can we please get a tutorial on how to really create NFT 's? Thank you in advance
@benzobryant8922
@benzobryant8922 3 года назад
yess thank you
@burakkahveci4123
@burakkahveci4123 2 года назад
Thanks!
@remlihicham5493
@remlihicham5493 2 года назад
merci bro, it work with me but i had problem in saving image, so i use function "show" to see image.
@Rob-nb6zi
@Rob-nb6zi 5 месяцев назад
Have you ever done a video on using parameter hints? As a new programmer, this is one of the things that I find very frustrating. I know there's good information in the popup, but I don't know how to use it effectively.
@pixegami
@pixegami 4 месяца назад
Yup, I have one on dataclasses (using type-hints): ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-9B9CdKANjnM.html and one using Pydantic as well: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-XIdQ6gO3Anc.html
@koushikkarmakar4589
@koushikkarmakar4589 2 года назад
You are great ☺️ ooo man
@pixegami
@pixegami 2 года назад
Thank you so much 😀
@yeshwanthv214
@yeshwanthv214 2 года назад
Good content 👍
@hashimsayyed1711
@hashimsayyed1711 2 года назад
What a day we're living in where Keanu Reeves is teaching us programming
@woodquarter4547
@woodquarter4547 2 года назад
watching you coding... its beautiful
@mmustap3
@mmustap3 2 года назад
Thanks for the tutorial. You're a great coder! I'm learning python and I still code slowly, how do you do this so seamlessly?
@pixegami
@pixegami 2 года назад
I didn't do anything special to be able to code 'seamlessly' (actually I still get stuck and make lots of mistakes). I think it just comes with time. Just focus on the problem or want to solve, or the idea you want to build, and don't worry whether you code fast or slow. Also, for these tutorials, I usually prototype the whole idea first before I start recording. So when I'm recording it, I already know which direction I'm going to go. If I do actual live-stream of me coding, you'll see me pause and go back-and-forth a whole lot more.
@mmustap3
@mmustap3 2 года назад
@@pixegami Understood. I started coding about 6 months ago and I guess it does get a little bit easier overtime, there's just so much to learn that it can feel overwhelming. Have your NFT's found some buyers, or were you just doing this as sort of a project?
@bakirm
@bakirm 2 года назад
The pip doesn't work on my MacBook, I have installed few ways but still doesn't work and also my python version says 2.7 on the vscode even though I have installed 3.9 from the python website, any help would be appreciated.
@pixegami
@pixegami 2 года назад
Ah ok, it looks like you need to first spend a bit of time understanding and setting up virtual environments in Python. The reason `pip` doesn't work for you isn't because you are on MacOS, but because you are the OS's system version of Python. When we work on projects, we don't want to use or modify the system Python (that's for the OS to use). We need to download and setup our own version and environment for it. That's how you can get 3.9 and pip. Here's more on virtual environments: docs.python.org/3/library/venv.html Also, when you use Python in VSCode, you can choose *which* Python environment you are using. It sounds like by default it's chosen your system Python 2.7, but ignored you newly installed 3.9. You can change it to use that instead. Check here: code.visualstudio.com/docs/python/environments
@seung2621
@seung2621 2 года назад
I'd like to add a random background color to this code, so could you tell me how to do it?
@g3org3210
@g3org3210 2 года назад
First a big thanks for this tutorial! I've actually been inspired by your work here and had a go head-first into the NFT world with a similar code! But do have question @line 100 in your GH code: "next_point = points[i + 1]" - could possibly explain the technicality behind this iteration? I do understand what it does :) but not HOW it does it... cause if you print out "i" you'd get the correct iteration number w/ the next iteration's value... Later Edit: you can disregard the question if you want, got it! :)
@pixegami
@pixegami 2 года назад
I’m not 100% sure if this was the question you are asking, but I’ll talk about it anyway in case others have the same question. So the “i+1” part of the iteration is to get the ‘next’ point in that list. In order to draw a line, we need two points. So to join a list of points together, we join points n and n+1.
@Anthony-pr1cy
@Anthony-pr1cy 2 года назад
what keyboard is this? Sounds amazing.
@pixegami
@pixegami 2 года назад
This is a K2 Keychron with red cherry MX switches.
@vipulvijay9456
@vipulvijay9456 2 года назад
hello sir, which python interface are you using like pycharm, anaconda, normal python etc.
@pixegami
@pixegami 2 года назад
I use VSCode as my IDE (I also use PyCharm for bigger projects, but these days VSCode is good enough). I don't use Anaconda, but I do sometimes use conda (with pip) as a package manager.
@vipulvijay9456
@vipulvijay9456 2 года назад
@@pixegami ok sir thank you
@Drawingand3dprint
@Drawingand3dprint Год назад
how can i export my programming to SVG. to open in grbl plotter ? need help :/
@slushe429
@slushe429 2 года назад
is the code for this somewhere? i looked at the githubs and could not find it
@pixegami
@pixegami 2 года назад
Here is the full version: github.com/pixegami-team/machine-psychology-python-art Here is the one I used in the tutorial: github.com/pixegami/python-generative-art-tutorial
@hhouse3144
@hhouse3144 2 года назад
What editor are you using? I love that you get the png preview right there.
@thisisearth.3127
@thisisearth.3127 2 года назад
Yes, you find out which editor he's using,
@hhouse3144
@hhouse3144 2 года назад
Oh ok, VSCode
@pixegami
@pixegami 2 года назад
Yup, this is just VSCode (available for free) without any plugins. VSCode can render images, so I just made that a separate window, and it refreshes when the image changes.
@hhouse3144
@hhouse3144 2 года назад
@@pixegami I love it. My new favorite editor, and thank you for this awesome tutorial!
@SirOatLand
@SirOatLand 2 года назад
Can anyone please explains to me how the part that connects all the dots works? I have tried to understand all the functions but cant seem to figure it out.
@pixegami
@pixegami 2 года назад
If we have a list of dots (x, y), then we can use the PIL draw.line() method to draw lines between the points. I suggest reading the doc and trying it out with a smaller set of points first to get a better understanding: pillow.readthedocs.io/en/stable/reference/ImageDraw.html#PIL.ImageDraw.ImageDraw.line
@SirOatLand
@SirOatLand 2 года назад
@@pixegami Thank you very much!
@jasenhartford85
@jasenhartford85 2 года назад
Could you show us how to layer image files that are stored in a directory?
@pixegami
@pixegami 2 года назад
Ah yeah I know what you’re talking about. That could be a fun video, I’ll give it a shot.
@tonywhite4476
@tonywhite4476 2 года назад
What happened to the naming part?
@pixegami
@pixegami 2 года назад
Oh dear, did I forget to include that? I have another video where I actually use GPT-3 in more detail, so you can get a sense of the technology and API there: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-yxyyYMWu1ZA.html (see the chapter about Open AI). And though not covered in the tutorial, my full project is also available on GitHub. The naming script is there: github.com/pixegami-team/machine-psychology-python-art/blob/main/src/art_name_generator.py
@sporttyt
@sporttyt 2 года назад
You best
@hichamnaouchi2183
@hichamnaouchi2183 2 года назад
Hey thanks for the great vid. i kept following u to 15:11 when i write p2=[i+1] it says index out of range anyone knows how to solve it?
@pixegami
@pixegami 2 года назад
This usually means that your list doesn't have an element at index "i+1". To debug, you can use a breakpoint to check what the contents of that list are (look up how to use breakpoints in Python). Or simpler, just print the list out before you try to access that index (for a more brute force approach).
@hichamnaouchi2183
@hichamnaouchi2183 2 года назад
@@pixegami okay i ll see to it thanks!
@_ecjojo
@_ecjojo 2 года назад
cute
@Yolo93100
@Yolo93100 2 года назад
What is the avantages to use python for create NFT instead of Opensea ? Thanks
@pixegami
@pixegami 2 года назад
Python is just for generating the images. OpenSea is for uploading them (or using as a marketplace) - so the two technologies aren’t mutually exclusive.
@NerdNug
@NerdNug 2 года назад
i only have one question: it says module named PIL not found
@pixegami
@pixegami 2 года назад
This is because you need to install "pillow" (the Python imaging library) into your environment. If you think you've already installed it, but still get the error - it means the place you installed it is different to the place you are running this script. You can read more about that if you just search Google for something like "managing packages in Python" or "setting up an environment in Python."
@koryr6727
@koryr6727 3 года назад
Will this work with blender and 3d art?
@pixegami
@pixegami 2 года назад
Not really. I don’t know how blender works yet so I’ll have to find out first.
@yarindidi8450
@yarindidi8450 2 года назад
@@pixegami did you find a way to make it possible on blender?
@gitbuh12345qwerty
@gitbuh12345qwerty 2 года назад
this word, art; I'm not sure it means what you think it means.
@pixegami
@pixegami 2 года назад
Ah well, gotta start somewhere 😬
@sekni19
@sekni19 2 года назад
What program u use sir?
@pixegami
@pixegami 2 года назад
VSCode as my IDE. For terminal, it’s just the regular Ubuntu terminal app, using zshell as the shell, and OhMyZsh plugin with a modified Agnoster theme.
@blackyonbi
@blackyonbi 2 года назад
Question: I've followed this tutorial up to 11:38 step by step. But there is one issue, every time i keep running the program, it doesn;t draw the line at all, even if I mess with the "image_bg_color" variable it wont change the picture, it continues to save a blank image. Am i doing something wrong? or is it something else that im overlooking?
@blackyonbi
@blackyonbi 2 года назад
Alright, so after some testing, turns out that its not saving a new image, it keeps the old archive, hence why its only showing a white square. Now the question is, the program doesn't show any problem and it "runs" with no compilation issues, but it's not overwriting the previous archive in order to show the new one...
@blackyonbi
@blackyonbi 2 года назад
NVM , managed to get through the tutorial andget the finishing results.
@pixegami
@pixegami 2 года назад
Glad you found the solution :) Yeah, image software can be a little fidgety to debug and test, so well done for persevering and getting the results.
@gemcapistrano
@gemcapistrano 2 года назад
Thank you for this!! but can anyone help me with this? I get an error when I run it: Exception has occurred: TypeError join() argument must be str, bytes, or os.PathLike object, not 'NoneType' During handling of the above exception, another exception occurred: File "C:\Users\Home\Downloads\python-generative-art-tutorial-main\src\generate_art.py", line 42, in generate_art output_dir = os.path.join('output', collection) File "C:\Users\Home\Downloads\python-generative-art-tutorial-main\src\generate_art.py", line 135, in generate_art(collection_name, f"{collection_name}_image_{i}")
@kryptoknight742
@kryptoknight742 2 года назад
yeah i get the same error....any advice please?? TIA
@gemcapistrano
@gemcapistrano 2 года назад
​@@kryptoknight742 Heyy, I think I have found the solution because now it runs successfully. But I forgot what line the error is in. Can you tell me the line of code that gets you an error?
@kryptoknight742
@kryptoknight742 2 года назад
@@gemcapistrano same as yours mate. I strayed from scratch and it relates to the batch editing. So I’m just doing 1 at a time haha. Changing the name in the script. Easy enough 👍🏻
@pixegami
@pixegami 2 года назад
It’s hard to debug an error without seeing the full stack-trace or code, but the error message “Exception has occurred … NoneType” tells me that one of the values you are passing is `None` to os.path.join(). My debug approach would be to check each of the values I’m about to pass in and see which is `None`.
@Robbse69
@Robbse69 3 года назад
Is python free? :-)
@vincentkarlsson4481
@vincentkarlsson4481 3 года назад
Yup
@Robbse69
@Robbse69 3 года назад
@@vincentkarlsson4481 🙏😊
@pixegami
@pixegami 2 года назад
Absolutely. All the tools used in the video are free for all platforms.
@melvinbcrc9457
@melvinbcrc9457 3 года назад
where i can contact you ?
@yarindidi8450
@yarindidi8450 2 года назад
Is it possible to make on a 3D blender character?
@pixegami
@pixegami 2 года назад
I don’t even know how to use Blender, so I can’t make a tutorial about it yet - but from what I know about modelling and coding in general, I’m 100% sure it is possible.
@anvisaini789
@anvisaini789 3 года назад
Will this work for 3d collection
@pixegami
@pixegami 3 года назад
If you mean 3D art, it's also just a data file at the end of the day, so you can probably write a Python program to generate 3D models and textures. But this tutorial specifically won't really give you useful information on how to do that (maybe unless you adapt the points to 3D space and plug it into a modelling/rendering tool).
@py_tok5589
@py_tok5589 2 года назад
nice lovely video, you also cute
@king-cd8kv
@king-cd8kv 2 года назад
Sub indo plss 🥲
@c0d3r1f1c
@c0d3r1f1c 2 года назад
NFTs? No fucking thanks.
@pixegami
@pixegami 2 года назад
😬 It's a popular subject so I thought I'd look into it. But honestly I'm struggling to find useful projects or tutorials to do with it
@penners7046
@penners7046 3 года назад
congrats, you managed to automate "art" (this is a bad thing)
@yopp1234
@yopp1234 2 года назад
why?
@pixegami
@pixegami 2 года назад
Haha, well…Technically this is just automating image generation. “Art” itself is probably in the perspective of the viewer, and I don’t know if that can ever be automated.
@blackyonbi
@blackyonbi 2 года назад
Programming itself should be considered an art, if you ask me....
@EternalNico1
@EternalNico1 2 года назад
this is art
@whatdoiputhere5089
@whatdoiputhere5089 3 года назад
Great video, thanks!
@Lastairbender98
@Lastairbender98 2 года назад
I m getting an error saying there is no module name PIL. Even I have installed pillow. What should I do
Далее
2 YEARS of PYTHON Game Development in 5 Minutes!
4:54
Просмотров 929 тыс.
Making AI Art Absolute Beginner's Tutorial
8:07
Просмотров 188 тыс.
skibidi toilet multiverse 042 Trailer
01:57
Просмотров 1,9 млн
Tim Holman - Generative Art Speedrun
21:34
Просмотров 109 тыс.
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
Why you’re so tired
19:52
Просмотров 1,3 млн
Generative art in Python: Basic Tiling
14:41
Просмотров 13 тыс.
Building the Smallest Robot-Brain
8:34
Просмотров 48 тыс.