So I created the conda environment for orthoseg (resulting environment attached). I have followed the wiki entry and all is fine until I try to predict.
When I try to predict I get the following error (on Ubuntu 22.04 LTS).
$ orthoseg_predict --config ./work/arpa/orthoseg/sample_projects/orthoseg/sample_projects/footballfields/footballfields.ini
2022-11-29 16:13:46.859616: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2022-11-29 16:13:46.859638: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Segmentation Models: using keras framework.
16:13:48.804|INFO|root|Start predict for config footballfields
16:13:48.807|INFO|root|Best model found: /home/jp/work/arpa/orthoseg/sample_projects/orthoseg/sample_projects/footballfields/models/footballfields_01_0.92512_242.hdf5
16:13:48.807|INFO|root|Tensorrt is available, so use optimized model
16:13:48.807|ERROR|root|ERROR while running predict for task footballfields
Traceback (most recent call last):
File "/opt/miniconda3/envs/orthoseg/lib/python3.9/site-packages/orthoseg/predict.py", line 166, in predict
best_model["filepath"].parent / best_model["filepath"].stem + "_optim"
TypeError: unsupported operand type(s) for +: 'PosixPath' and 'str'
16:13:48.808|ERROR|root|Error: ERROR while running predict for task footballfields
Traceback (most recent call last):
File "/opt/miniconda3/envs/orthoseg/lib/python3.9/site-packages/orthoseg/predict.py", line 166, in predict
best_model["filepath"].parent / best_model["filepath"].stem + "_optim"
TypeError: unsupported operand type(s) for +: 'PosixPath' and 'str'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/miniconda3/envs/orthoseg/lib/python3.9/site-packages/orthoseg/predict.py", line 294, in main
predict_args(sys.argv[1:])
File "/opt/miniconda3/envs/orthoseg/lib/python3.9/site-packages/orthoseg/predict.py", line 71, in predict_args
predict(config_path=Path(args.config))
File "/opt/miniconda3/envs/orthoseg/lib/python3.9/site-packages/orthoseg/predict.py", line 289, in predict
raise Exception(message) from ex
Exception: ERROR while running predict for task footballfields
Traceback (most recent call last):
File "/opt/miniconda3/envs/orthoseg/lib/python3.9/site-packages/orthoseg/predict.py", line 166, in predict
best_model["filepath"].parent / best_model["filepath"].stem + "_optim"
TypeError: unsupported operand type(s) for +: 'PosixPath' and 'str'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/miniconda3/envs/orthoseg/bin/orthoseg_predict", line 8, in <module>
sys.exit(main())
File "/opt/miniconda3/envs/orthoseg/lib/python3.9/site-packages/orthoseg/predict.py", line 294, in main
predict_args(sys.argv[1:])
File "/opt/miniconda3/envs/orthoseg/lib/python3.9/site-packages/orthoseg/predict.py", line 71, in predict_args
predict(config_path=Path(args.config))
File "/opt/miniconda3/envs/orthoseg/lib/python3.9/site-packages/orthoseg/predict.py", line 289, in predict
raise Exception(message) from ex
Exception: ERROR while running predict for task footballfields