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

Increasing "Amount" causes error #2

Closed werksone closed 2 years ago

werksone commented 2 years ago

As soon as I try to increase the amount i get an error

return [population[bisect(cum_weights, random() * total, 0, hi)] File "/usr/local/Cellar/python@3.9/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/random.py", line 505, in <listcomp> return [population[bisect(cum_weights, random() * total, 0, hi)] RecursionError: maximum recursion depth exceeded in comparison

Jon-Becker commented 2 years ago

You need more layers. It's trying to create unique images but can't, because it only has a few layers to work with.

werksone commented 2 years ago

Ahh understood, Makes sense. Cheers.