cyberdoggos / generator

CyberDoggos NFT Generator
MIT License
116 stars 56 forks source link

IndexError: too many indices for array: array is 2-dimensional, but 3 were indexed #6

Open Weberowsky opened 2 years ago

Weberowsky commented 2 years ago
  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
cyberdoggos commented 2 years ago

Are you sure that the images you are using are in RGBA format? Did you get the same problem when you try it with the original images?