Closed firmanhadi closed 2 months ago
Can you try:
$ git clone https://framagit.org/jmichel-otb/sentinel2_superresolution.git
$ pip install sentinel2_superresolution[gpu]
Can you try:
$ git clone https://framagit.org/jmichel-otb/sentinel2_superresolution.git $ pip install sentinel2_superresolution[gpu]
Thank you for prompt reply. I could proceed to install it, but a new error came when I ran one of the example.
What is your python version ? I think 3.10 is required for this syntax.
What is your python version ? I think 3.10 is required for this syntax.
Thank you. After I used Python 3.10, I could install it. Another error came after I tried to run it with this command:
sentinel2_superesolution -i S2A_MSIL2A_20240319T025531_N0510_R032_T48MYU_20240319T072558.SAFE -o resumts/ --gpu
File "/home/firman/anaconda3/envs/super/lib/python3.10/site-packages/sensorsio/sentinel2.py", line 404, in build_xml_path raise FileNotFoundError( FileNotFoundError: Could not find root XML file in product directory S2A_MSIL2A_20240319T025531_N0510_R032_T48MYU_20240319T072558.SAFE
I had the same problem with pip install git+https
combination with the installation redirected to https://framagit.org/users/sign_in
when supplied [gpu] support variant.o
What is your python version ? I think 3.10 is required for this syntax.
Thank you. After I used Python 3.10, I could install it. Another error came after I tried to run it with this command:
sentinel2_superesolution -i S2A_MSIL2A_20240319T025531_N0510_R032_T48MYU_20240319T072558.SAFE -o resumts/ --gpu
File "/home/firman/anaconda3/envs/super/lib/python3.10/site-packages/sensorsio/sentinel2.py", line 404, in build_xml_path raise FileNotFoundError( FileNotFoundError: Could not find root XML file in product directory S2A_MSIL2A_20240319T025531_N0510_R032_T48MYU_20240319T072558.SAFE
I realized I didn't use the correct version of Sentinel-2A Product. I downloaded Sentinel-2A MAJA product from DLR, but when I ran it again, there was a new error message:
sentinel2_superesolution -i SENTINEL2B_20240418-103602-534_L2A_T32UNE_C_V1-3 -o resumts/ --gpu Traceback (most recent call last): File "/home/firman/anaconda3/envs/super/bin/sentinel2_superesolution", line 8, in <module> sys.exit(run()) File "/home/firman/anaconda3/envs/super/lib/python3.10/site-packages/sentinel2_superresolution/run.py", line 424, in run main(sys.argv[1:]) File "/home/firman/anaconda3/envs/super/lib/python3.10/site-packages/sentinel2_superresolution/run.py", line 281, in main ort_session = ort.InferenceSession(args.model, sess_options=so, providers=ep_list) File "/home/firman/anaconda3/envs/super/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 419, in __init__ self._create_inference_session(providers, provider_options, disabled_optimizers) File "/home/firman/anaconda3/envs/super/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 472, in _create_inference_session sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model) onnxruntime.capi.onnxruntime_pybind11_state.NoSuchFile: [ONNXRuntimeError] : 3 : NO_SUCHFILE : Load model from /home/firman/anaconda3/envs/super/lib/python3.10/site-packages/sentinel2_superresolution/../../models/carn_3x3x64g4sw_bootstrap.onnx failed:Load model /home/firman/anaconda3/envs/super/lib/python3.10/site-packages/sentinel2_superresolution/../../models/carn_3x3x64g4sw_bootstrap.onnx failed. File doesn't exist
I had the same problem with
pip install git+https
combination with the installation redirected tohttps://framagit.org/users/sign_in
when supplied [gpu] support variant.o
You can use the solution by @jmichel-otb https://github.com/Evoland-Land-Monitoring-Evolution/sentinel2_superresolution/issues/2#issuecomment-2082311191
I realized I didn't use the correct version of Sentinel-2A Product. I downloaded Sentinel-2A MAJA product from DLR, but when I ran it again, there was a new error message:
Yes, supporting sen2corr L2A is only a matter of adding support in sensorsio. Should be available in a few weeks / months.
sentinel2_superesolution -i SENTINEL2B_20240418-103602-534_L2A_T32UNE_C_V1-3 -o resumts/ --gpu Traceback (most recent call last): File "/home/firman/anaconda3/envs/super/bin/sentinel2_superesolution", line 8, in <module> sys.exit(run()) File "/home/firman/anaconda3/envs/super/lib/python3.10/site-packages/sentinel2_superresolution/run.py", line 424, in run main(sys.argv[1:]) File "/home/firman/anaconda3/envs/super/lib/python3.10/site-packages/sentinel2_superresolution/run.py", line 281, in main ort_session = ort.InferenceSession(args.model, sess_options=so, providers=ep_list) File "/home/firman/anaconda3/envs/super/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 419, in __init__ self._create_inference_session(providers, provider_options, disabled_optimizers) File "/home/firman/anaconda3/envs/super/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 472, in _create_inference_session sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model) onnxruntime.capi.onnxruntime_pybind11_state.NoSuchFile: [ONNXRuntimeError] : 3 : NO_SUCHFILE : Load model from /home/firman/anaconda3/envs/super/lib/python3.10/site-packages/sentinel2_superresolution/../../models/carn_3x3x64g4sw_bootstrap.onnx failed:Load model /home/firman/anaconda3/envs/super/lib/python3.10/site-packages/sentinel2_superresolution/../../models/carn_3x3x64g4sw_bootstrap.onnx failed. File doesn't exist
Ok, so there is still a problem with installation, the model file does not get installed with pip install
. Sorry about the crappy packaging, I need to improve it.
Meanwhile, could you try running again:
$ git clone https://framagit.org/jmichel-otb/sentinel2_superresolution.git
$ pip install -e sentinel2_superresolution[gpu]
Or alternatively provide the model explicitly to the command-line:
$ sentinel2_superesolution -i SENTINEL2B_20240418-103602-534_L2A_T32UNE_C_V1-3 -o resumts/ --gpu -m path_to/carn_3x3x64g4sw_bootstrap.onnx
The carn_3x3x64g4sw_bootstrap.onnx
model file is located in the models
folder of the source of sentinel2_superresolution
.
Hi @jmichel-otb, thnak you for your quick reply. Unfortunately, a new error occurs again.
sentinel2_superesolution -v -i /mnt/hd/appoggio2/test/S2B_MSIL1C_20230823T095559_N0509_R122_T33TUG_20230823T121626.SAFE/ --l1c -o out/ --gpu -m /test/carn_3x3x64g4sw_bootstrap.onnx
Traceback (most recent call last):
File "/usr/local/bin/sentinel2_superesolution", line 5, in
I realized I didn't use the correct version of Sentinel-2A Product. I downloaded Sentinel-2A MAJA product from DLR, but when I ran it again, there was a new error message:
Yes, supporting sen2corr L2A is only a matter of adding support in sensorsio. Should be available in a few weeks / months.
sentinel2_superesolution -i SENTINEL2B_20240418-103602-534_L2A_T32UNE_C_V1-3 -o resumts/ --gpu Traceback (most recent call last): File "/home/firman/anaconda3/envs/super/bin/sentinel2_superesolution", line 8, in <module> sys.exit(run()) File "/home/firman/anaconda3/envs/super/lib/python3.10/site-packages/sentinel2_superresolution/run.py", line 424, in run main(sys.argv[1:]) File "/home/firman/anaconda3/envs/super/lib/python3.10/site-packages/sentinel2_superresolution/run.py", line 281, in main ort_session = ort.InferenceSession(args.model, sess_options=so, providers=ep_list) File "/home/firman/anaconda3/envs/super/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 419, in __init__ self._create_inference_session(providers, provider_options, disabled_optimizers) File "/home/firman/anaconda3/envs/super/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 472, in _create_inference_session sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model) onnxruntime.capi.onnxruntime_pybind11_state.NoSuchFile: [ONNXRuntimeError] : 3 : NO_SUCHFILE : Load model from /home/firman/anaconda3/envs/super/lib/python3.10/site-packages/sentinel2_superresolution/../../models/carn_3x3x64g4sw_bootstrap.onnx failed:Load model /home/firman/anaconda3/envs/super/lib/python3.10/site-packages/sentinel2_superresolution/../../models/carn_3x3x64g4sw_bootstrap.onnx failed. File doesn't exist
Ok, so there is still a problem with installation, the model file does not get installed with
pip install
. Sorry about the crappy packaging, I need to improve it.Meanwhile, could you try running again:
$ git clone https://framagit.org/jmichel-otb/sentinel2_superresolution.git $ pip install -e sentinel2_superresolution[gpu]
Or alternatively provide the model explicitly to the command-line:
$ sentinel2_superesolution -i SENTINEL2B_20240418-103602-534_L2A_T32UNE_C_V1-3 -o resumts/ --gpu -m path_to/carn_3x3x64g4sw_bootstrap.onnx
The
carn_3x3x64g4sw_bootstrap.onnx
model file is located in themodels
folder of the source ofsentinel2_superresolution
.
I have finally succeeded to run it and get the result.
Packaging is fixed and installation instruction have been simplified in README.
Hi, I got this error message when I tried to install gpu version: