-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement skip duplicated items #19
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Traceback (most recent call last):
File "D:\Google Indirilenler\generative-art-nft-master\generative-art-nft-master\nft.py", line 259, in
main()
File "D:\Google Indirilenler\generative-art-nft-master\generative-art-nft-master\nft.py", line 250, in main
rt = generate_images(edition_name, num_avatars)
File "D:\Google Indirilenler\generative-art-nft-master\generative-art-nft-master\nft.py", line 186, in generate_images
if is_dupliacted(rarity_dict, trait_sets, image_index):
File "D:\Google Indirilenler\generative-art-nft-master\generative-art-nft-master\nft.py", line 151, in is_dupliacted
if rarity_dict[CONFIG[idx]['name']][index] != trait[: -1 * len('.png')]:
TypeError: 'NoneType' object is not subscriptable
I got this error. Can you help me
Hi, @ykeremekinci Good Day! |
This is my file. You can download here. Inside the generative-art-nft folder, there is another generative-art-nft folder. Open this in Visual Studio Code. |
Hi, @ykeremekinci Thanks for sharing your script. |
Thank you for your help. I got a new problem :( Starting task... This time the code works but it deletes the same images as before and there are fewer images when there should have been 15 images. And yes, I have installed the versions of the plugins in the suggested post you added. Here is my file : https://github.com/ykeremekinci/generative-art-nft/blob/Generative-Art-Nft-problem-ykeremekinci/generative-art-nft-problem2.rar |
The append in line 203 sets it to 'none' so I believe that what we shld be comparing it with that's why the code wasn't finding any duplicates
Update nft.py
Yes, it really worked this time. Thank you so much 👍 |
now this script generate COUNT items then remove duplicated ones. so the final generated items are less than COUNT.
I fixed this issue to generate correct number of COUNT items that are unique.