sovit-123 / fasterrcnn-pytorch-training-pipeline

PyTorch Faster R-CNN Object Detection on Custom Dataset
MIT License
223 stars 75 forks source link

Supported image formats. #85

Closed aymuos15 closed 1 year ago

aymuos15 commented 1 year ago

I am working on some personal data on a personal environment which are in the form of .tif and the code is not working.

Is there any constraint on the type of image file? Works only on the regular .jpg .jpeg and .png?

Because, keeping everything the same, it is working on the data you have on the original colab. As in, I downloaded the data locally and it is working.

Edit: I tried converting one of the images to .tif and it did not read alongside the other .jpg images. I believe this seems to be the problem. Is there any fix? I tried searching the codebase but could not find any specific place where the image types are defined.

Edit2: I found the places the image formats were mentioned and have made the changes. You can delete this issue if you wish or can close it as well.

sovit-123 commented 1 year ago

Thanks. I will try to push an update to support .tif format as well. I am closing the issue for now.