nuno-faria / tiler

👷 Build images with images
MIT License
5.91k stars 424 forks source link

Continually receive IndexError: index 3 is out of bounds for axis 2 with size 3 #18

Open alliedcvil opened 5 years ago

alliedcvil commented 5 years ago

When trying to generate tiles I receive this with a standard image.

Traceback (most recent call last): File "tiler.py", line 221, in main() File "tiler.py", line 216, in main img = create_tiled_image(boxes, original_res, render=conf.RENDER) File "tiler.py", line 186, in create_tiled_image place_tile(img, box) File "tiler.py", line 173, in place_tile mask = box['tile'][:, :, 3] != 0 IndexError: index 3 is out of bounds for axis 2 with size 3

nuno-faria commented 5 years ago

It should be fixed now. Give it a try and let me know.