Jon-Becker / nft-generator-py

This tool allows users to generate sets of unique images and metadata using weighted layer collections.
MIT License
304 stars 126 forks source link

Value Error:('The number of weights does not match the population') #1

Closed awesomekid1021 closed 2 years ago

awesomekid1021 commented 2 years ago

So there's a weird error that happened when I tried to run the code with my own images, I posted my images here but I'm just not sure how to solve this, can someone help? <img width="1440" alt="Screen Shot 2021-09-17 at 11 19 17 AM" src="https://user-images.githubusercontent.com/33333641/133808013-e61d9217-4c78-47b8-9292-befa276b09df.png"

Screen Shot 2021-09-17 at 11 19 11 AM Screen Shot 2021-09-17 at 11 19 05 AM Screen Shot 2021-09-17 at 11 19 04 AM Screen Shot 2021-09-17 at 11 18 58 AM
Jon-Becker commented 2 years ago

Thats an error when the image weights don't add up to 100, but they seem to in your code. Are all the images the same size in pixels? Can you send me a zip file of your code so I can check it? Thank you!

Jon-Becker commented 2 years ago

Nevermind. On line 89 you only specify one value "Python Logo", but you have 2 files and 2 weights that the code is looking for.

wsasdsda commented 1 year ago

Have you solved this problem?

Jon-Becker commented 1 year ago

Have you solved this problem?

yep. check your weights again