Open bobbender opened 5 months ago
We've been mostly using tools/test/test_original_images.py
recently, so test_patch.py
wasn't up to date although it is the correct script in this case. It should be working now.
If there are still issues, please reach out again and use tools/test/test_original_images.py
with the additional parameters
--patch-size 1024 --patch-overlap 0
in the meantime. The functionality is the same if the patch size is equal to the size of the input images, but it may be a bit slower.
I just realized that the evaluation part in README was wrong. I updated it.
Hey thx for your answers and updates.
When I use the tools/test/test_original_images.py
with the setting additional parameters: --patch-size 1024 --patch-overlap 0
I get the error:
File "/opt/project/tools/test/bbavector/test_original_image.py", line 119, in <module>
main(args)
File "/opt/project/tools/test/bbavector/test_original_image.py", line 112, in main
nms_iou_threshold=args.nms_iou_thresh,
AttributeError: 'Namespace' object has no attribute 'nms_iou_thresh'
But as I see it, the bbavector/tools.py --> save_original_image_results()
function doesn't need the param: "nms_iou_threshold", so I simply removed this line: nms_iou_threshold=args.nms_iou_thresh,
--> line 112 in tools/test/bbavector/test_original_image.py
. And it works just fine.
I managed setup the environment and install satellitepy following your instructions and it works fine.
I successfully trained a test model with my custom dataset with the following command:
When I try to test is with the following command:
I get an error:
I assume there is an arg param missing in the file "tools/test/bbavector/test_patch.py", something like this (?):
parser.add_argument('--log-path', type=Path, required=False, help='Log path.')
I added this line to my local file and it works, however there is another error:
What am I missing here ? Is this ("tools/test/bbavector/test_patch.py") even the correct script to test my model ?
All the best