We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Certain images seem to work, but most fail with a very similar message to the example below
All commands run from tiler's root directory (tiler/) Run command with .jpg version of image
tiler/
.jpg
python3 gen_tiles.py images/test2/test2.jpg
Output
0%| | 0/5 [00:00<?, ?it/s] Traceback (most recent call last): File "gen_tiles.py", line 31, in <module> new_img = img * [b, g, r, 1] ValueError: operands could not be broadcast together with shapes (1360,1000,3) (4,)
Convert image to .png, run command again
.png
python3 gen_tiles.py images/test2/test2.png
Output:
Traceback (most recent call last): File "gen_tiles.py", line 23, in <module> img = img.astype('float') AttributeError: 'NoneType' object has no attribute 'astype'
System information:
Python 3.7.2
pip 18.1 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
Mac OS X 10.14.5
The text was updated successfully, but these errors were encountered:
I fixed the problem for the .jpg images. Give that a try now.
As for the .png one, are you sure images/test2/test2.png exists and is a valid image? If so, could you send it?
images/test2/test2.png
Sorry, something went wrong.
No branches or pull requests
Certain images seem to work, but most fail with a very similar message to the example below
All commands run from tiler's root directory (
tiler/
)Run command with
.jpg
version of imageOutput
Convert image to
.png
, run command againOutput:
System information:
Python 3.7.2
pip 18.1 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
Mac OS X 10.14.5
The text was updated successfully, but these errors were encountered: