How to create 1000+ unique NFT-style images (like Cryptopunk) | Python Tutorial

preview_player
Показать описание
In this project, we will use Python to generate a collection of unique profile-picture avatar by layering images from a directory. This is the technique used bymany popular NFT collections like Cryptopunks or Bored Ape.

Chapters

00:00 Introduction
01:10 Creating the image layers
04:00 Getting started with the project
10:45 Traversing the image directory for sub-paths
17:38 Picking a random image index for each layer
23:58 Using PIL to render the image
36:55 Generating 100x images at once
41:34 Adding rare elements and backgrounds
49:30 Wrapping up
Рекомендации по теме
Комментарии
Автор

My first run at trying anything with Python, and I hit a lot of road blocks, even when typing exactly what you typed, but in the end I got it working and learned SOO much!! Thank you for the amazing video!! You are a wizard at this stuff!

joshbernard_
Автор

Fucking THE BEST tutorial and nft py code i'v ever seen, no BS and all automatically taken from folders. 100% usefull w/ explanation!

gromash
Автор

Haven't watched it yet but I know that it will be cool! 🙌 Thanks man!

ssyedyaseens
Автор

thanks, thanks, thanks.. this really helpful and keep me excited project to start with python for me.

MIKEY_MANJI
Автор

Thank you very much for this great and informative video.

arashhadadsoleymani
Автор

Thank you! I have learned something from you!

InspiringVibesVideos
Автор

Hi Jack,

I hope this message finds you well. I wanted to let you know that I've saved the video you shared with me into my library. I have a great interest in generative art and its various applications, so I'm looking forward to watching it with my full concentration. Once I've gone through the video, I'll provide you with my feedback and thoughts on it.

By the way, I wanted to ask if you've had any experience working with Processing. I'm curious to know your perspective on it and what you think of the platform. It would be helpful to hear about both the advantages and disadvantages you've encountered while using it.

Lastly, I wanted to express my gratitude and mention that I would be thrilled if you could create more videos showcasing generative art applications. Your previous video has sparked my interest, and I believe there is much more to explore in this fascinating field.

Looking forward to hearing from you soon.

Best regards,
MohamadAli

bewmohamadali
Автор

hlw sir if we want to generate different background color so how its code work?
which code is perfect for it?

gamersshorts
Автор

I saw in opensea that the size of the images loaded are not 24x24 px. or is there a way to render in a bigger format?. what format should be an NTF BTW? thanks, good video man!

dpaudiovisual
Автор

Great video! I think you found a gap between cookie cutter tutorials and several parts long technical series. I hope you get to 100k subs in next 6 months :)

nitinp
Автор

Thank you So much Jack you help me
Please I need To ask you some information about collation Like Crypto chicks
If I do The lips style How I can Put it every style Colour Please 🙏

Deblacky
Автор

Hi, thanks for this great video!! I am facing a problem installing the pillow when following this tutorial, my terminal panel is different from ur terminal panel in the video, it only shows the paths of my pc and does not show the output too, could u please help me to solve this problem??🙏🙏

cindychia
Автор

I don't usually comment on videos but this was a brilliant tutorial man exactly what I needed. I was just wondering if you could add a functionality that outputs metadata in a json file? and is it possible make items within layers rarer than others. For example, say you wanted green hair within the hair layer to be rarer, are you able to specify a rarity score for green hair in addition to the overall layer rarity?
But again amazing tutorial much much appreciated!!

andi
Автор

Do you know why this error would show up : "....packages\PIL\Image.py", line 3328, in alpha_composite
return im1._new(core.alpha_composite(im1.im, im2.im))ValueError: images do not match"

my files are 4000x4000 so i changed the new image size to that. I changed one probablility and deleted the other. For some reason the program runs for a few images then pops that error. Thanks if you get a chance to see this, great tutorial.

Jerdude
Автор

TY for the video. However I've had to stop 5 minutes through because I can't find the VSC images sub-folders - face, etc are not their (I both copied and cloned). Pls advise ty.

elatedpixelations
Автор

very nice video for nft, ,, Please upload more video, how to do solidity, meta data, other things ...thanks @pixegami

kichirmichir
Автор

Hello, thanks for these incredible informations. ı wonder that how can ı rewrite to code if ı want to give rarity to spesific object for example white sunglasses?

cedipinkman
Автор

Amazing video!!! Thanks!

1. How do you make the end file name include the names of all layers used in the image?
2. How do you make it so that if a certain layer is included in an image when the image_path_sequence is randomly put together, the image is processed through an alternative pipeline (example: a specific background is added, an animation is added, or some other special effects are added)? It doesn't look like it's possible to use the image_path_sequence variable for that as it returns a bound method object reference vs the values and when you run it as bound method image_path_sequence() it generates another random instance of the sequence (different from the image that is saved)

aent
Автор

Great project. I was wondering if there is a way to actually scroll through images in each layer and modify a generated avatar (e.g. script generated a model, but you still want to add a pipe for instance)?

ivanvuicik
Автор

hi, can you make a video to bulk upload the nfts you have created with this python code on opensea?

cyberobo
welcome to shbcf.ru