Skip to content
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

Setting layers which impact on variety #26

Closed
ChrisRegis opened this issue Mar 29, 2022 · 1 comment
Closed

Setting layers which impact on variety #26

ChrisRegis opened this issue Mar 29, 2022 · 1 comment

Comments

@ChrisRegis
Copy link

ChrisRegis commented Mar 29, 2022

Hi, @rounakbanik! I suppose it is the most user-friendly code to work with on this subject. Thanks a lot!
However, I have a challenge: I have 6 layers in total, and I want only 2 of them that program will treat as unique, and others wont.
I explain, there are layers, such as backgound (4 layers) that are needed just "for beauty" and 2 important layers. So I want program to work like this: when it is mixing layers and have combination like (XXXX XX) and (XXXX XY) - are distinct, but (XXXX XX) and (XXYX XX) as "the same" puctures and DO NOT create such picture. So the maximum number of combinations is less than multiplication of all layers by all treats.
Sorry, I am not so pro in coding)
Thanks in advance!

@ChrisRegis
Copy link
Author

Well, sorry for disturbing! I have managed my issue. If someone is interested in my case, it is solving just in easy way: in 183 line of nft.py there is a method "drop_duplicates" and I added param "subset=['xxx']" to use only needed columns. After generating images it will delete undistinct.
Thank again for this tutorial! Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant