-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
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
Command for running via docker #10
Comments
In you host, you must set the correct rights to the folders and files used inside the container. |
Thank you for helping. As you pointed out the problem was with my host folder/files rights as well as I figured out the command for accessing the folder for input was also wrong. So first I gave the folder read, write and execute access. After that I executed all the commands and all worked. Below are the list commands that worked in my case. Change Directory Step 2: SampleSelection Step 3: PatchExtraction Change Dircetory Step 5: Train Model Step 6: Model Serve |
I'm glad this helped! I had a few struggles myself with file permissions inside/outside the docker container. |
Thank you for the information. The blog was really helpful. At present for some reason my graphic card isn't working. I have GTX 1050Ti may be because it is not compatible with my motherboard or may be faulty although the GPU fan keeps on running. So I wonder if I install the OTBTF r1.7:GPU without graphics card it should also work fine right.? I will not pass the parameter "runtime=nvidia" during docker run. Or should I use OTBTF r1.7:CPU until I have a NVIDIA GPU..? |
I think that you can run it without the nvidia runtime, it should behave as the cpu version. |
Thank you. I did install the OTBTF r1.7:gpu. But I had to create an ''otbuser" inside the container. I did follow the steps from OTBTF r1.6 mentioned as below.
sudo docker run -u otbuser -w="/home/otbuser/" -v $(pwd):/home/otbuser mdl4eo/otbtf1.7:gpu otbcli_PolygonClassStatistics -vec /home/otbuser/Data/Pookwe/Shapefiles/Ratoon_Jan_Feb_Mar1_reprojected.shp -field P_M -in /home/otbuser/Data/Pookwe/Images/SENTINEL2A_20180323-033825-637_L2A_T47QRU_stacked.tif -out /home/otbuser/Output/1.Polygon_stats/vec_stats_objid.xml
But I can run all the commands. Thank you again. |
Hello,
I did try to run via docker but it shows error as ''cannot open file" or the "file doesn't exit". I'm not sure if it is the right way to forward input files in the folder in host to docker container. If you could help it would be great.
The text was updated successfully, but these errors were encountered: