mapbox / robosat

Semantic segmentation on aerial and satellite imagery. Extracts features such as: buildings, parking lots, roads, water, clouds
MIT License
2.01k stars 382 forks source link

docker cpu download failed #193

Closed oneOfThePeople closed 4 years ago

oneOfThePeople commented 4 years ago

sudo docker run -it --rm -v $PWD:/data --ipc=host --network=host mapbox/robosat:latest-cpu download https://api.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}@2x.webp?access_token=my_access_token /data/buildings.tiles /data/images 0%| | 0/4 [00:00<?, ?image/s]Warning: Tile(x=19, y=15, z=5) failed, skipping Warning: Tile(x=20, y=15, z=5) failed, skipping /opt/venv/lib/python3.6/site-packages/PIL/Image.py:2703: UserWarning: image file could not be identified because WEBP support not installed warnings.warn(message) Warning: Tile(x=18, y=15, z=5) failed, skipping Warning: Tile(x=19, y=14, z=5) failed, skipping

daniel-j-h commented 4 years ago

Can reproduce

docker run --runtime=nvidia -it --rm --entrypoint bash mapbox/robosat:latest-gpu

$ python3
>>> import PIL.features
>>> PIL.features.check_module('webp')
False

Looks like we do not compile Pillow-SIMD with libwebp support; I just opened https://github.com/mapbox/robosat/pull/194 to fix this.