cyberdoggos / generator Goto Github PK
View Code? Open in Web Editor NEWCyberDoggos NFT Generator
License: MIT License
CyberDoggos NFT Generator
License: MIT License
Hello how can i solve this warn?
Lossy conversion from float64 to uint8. Range [0.0, 255.0]. Convert image to uint8 prior to saving to suppress this warning.
I changed the resolution through config-norm yml, and added the new trait named as same as old names, this only two changes that I made, it gives me only 1/1000 img then this error appears, can you please help me, thanks.
[Running] python -u "c:\Users*\Documents*\generator-main\generate.py"
Lossy conversion from float64 to uint8. Range [0.0, 255.0]. Convert image to uint8 prior to saving to suppress this warning.
Lossy conversion from float64 to uint8. Range [0.0, 255.0]. Convert image to uint8 prior to saving to suppress this warning.
Traceback (most recent call last):
File "c:\Users***\Documents\ *\generator-main\generate.py", line 192, in
main()
File "c:\Users*\Documents\ ****\generator-main\generate.py", line 181, in main
gen.generate_normal(i, mistakes)
File "c:\Users\ ****\Documents\ ****\generator-main\generate.py", line 30, in generate_normal
image, ids[idx], name, value, trait = self.add_layer(image, layer_id, layer, traits)
File "c:\Users\ ****\Documents\ ****\generator-main\generate.py", line 102, in add_layer
image = alpha * layer + (1 - alpha) * image
ValueError: operands could not be broadcast together with shapes (100,100,0) (100,100,3)
hey,
thanks dude for sharing the code.
after I added some traits and changed most of the names, also I am sure about prop is equal 1
error.txt
File "C:\Users\filip\Downloads\nft gen\generate.py", line 193, in <module>
main()
File "C:\Users\filip\Downloads\nft gen\generate.py", line 182, in main
gen.generate_normal(i, mistakes)
File "C:\Users\filip\Downloads\nft gen\generate.py", line 30, in generate_normal
image, ids[idx], name, value, trait = self.add_layer(image, layer_id, layer, traits)
File "C:\Users\filip\Downloads\nft gen\generate.py", line 99, in add_layer
alpha = img[:, :, 3:] / 255
IndexError: too many indices for array: array is 2-dimensional, but 3 were indexed
Hi,
I have been trying to use your code, but I am having troubles with this error.
Could you help me?
Hi my file size is already 3000 / 3000 pixels but when I run script, it generates the images twice, one normal while the other, it appends _large.
How can I stop it from creating the large one? Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.