FewShotDetection
FewShotDetection copied to clipboard
how to visualize the detection results?
Hi @HuangLian126
You can run test.py with args --vis, then the visualisation is on.
Hi @HuangLian126
You can run
test.pywith args--vis, then the visualisation is on.
Sorry to bother you, I also wanted to see the visual results during the test, but there was an error:
File "/home/xxx/FewShotDetection-master/test.py", line 335, in
No description provided.
Did you successfully get the visual result?
No description provided.
Did you successfully get the visual result?
No description provided.
Did you successfully get the visual result?
Yes, I successfully get the visual result. You can check your Pytorch version.
Hi @NHW2017 ,
I think your problem comes from this line:
image_path = os.path.join(self._data_path, 'JPEGImages', index + self._image_ext)
Could you try modify it as:
image_path = os.path.join(self._data_path, 'JPEGImages', str(index) + self._image_ext)
to see if the issue is resolved?
Hi @NHW2017 ,
I think your problem comes from this line:
image_path = os.path.join(self._data_path, 'JPEGImages', index + self._image_ext)Could you try modify it as:
image_path = os.path.join(self._data_path, 'JPEGImages', str(index) + self._image_ext)to see if the issue is resolved?
No, I have tried this modification, but a new error appears and the file path cannot be found
No description provided.
Did you successfully get the visual result?
No description provided.
Did you successfully get the visual result?
Yes, I successfully get the visual result. You can check your Pytorch version.
torch==0.4.0?
Then I think you might need to check the dataset is well downloaded as structured as suggested
@NHW2017 torch==0.4, torchvision==0.21
Then I think you might need to check the dataset is well downloaded as structured as suggested
I don't quite understand, because I had no problems during training and testing, but this error occurred during --vis, so I think the error is not due to the configuration of the data set
@NHW2017 torch==0.4, torchvision==0.21
Which version of python do you use and whether you have modified other parts of the code?