segment-geospatial icon indicating copy to clipboard operation
segment-geospatial copied to clipboard

Dockerfile

Open austinmw opened this issue 1 year ago • 6 comments

Description

Since this project requires GDAL so the requirements are fairly complex to install, it would be very helpful to include a Dockerfile

austinmw avatar Apr 27 '23 15:04 austinmw

Good suggestion. It is on my to-do-list. We can build upon the pytorch Dockerfile.

https://github.com/anibali/docker-pytorch/tree/master

or https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#gpu-accelerated-notebooks

https://github.com/iot-salzburg/gpu-jupyter

giswqs avatar Apr 27 '23 15:04 giswqs

Thanks. Quick question, was this fine tuned on geospatial data, or does it use the pretrained weights from meta as-is?

austinmw avatar Apr 27 '23 15:04 austinmw

It uses the pre-trained model as it is. No fine-tuning yet.

giswqs avatar Apr 27 '23 15:04 giswqs

Thanks for your fast response! I tried very small pedestrian and vehicle segmentation on the SAM demo site and the performance did not seem great for me, so fine tuning would be awesome in the future 🚀

austinmw avatar Apr 27 '23 15:04 austinmw

Yes, that would be a great feature to add. I will see you if I can implement it. Contributions are always welcome.

giswqs avatar Apr 27 '23 15:04 giswqs

Yes, a dockerfile is really necessary. Thanks.

swdmike avatar May 01 '23 08:05 swdmike

I can confirm the installation steps necessary to run the example Jupyter notebooks aren't very clear. A dockerfile of your demo environment would be very appreciated! Or at least add detail to the instructions on how you set it up from one of the docker-stacks.

In my case I have your example notebooks running in jupyter/datascience-notebook after installing segment-geospatial with mamba. However the TIF format rasters don't appear as layers in the leafmaps. I'm sure I'm missing a dependency but I don't know what it is.

p-vdp avatar May 16 '23 14:05 p-vdp

@p-vdp The file extension problem has been fixed in https://github.com/opengeos/segment-geospatial/pull/43. Try changing the file extension from .tiff to .tif.

Do you have a Dockerfile that you can share?

giswqs avatar May 16 '23 22:05 giswqs

Amazingly quick response and fix! Thank you!!

p-vdp avatar May 17 '23 05:05 p-vdp