-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When inference, do I need to convert image to jpg format first? #35
Comments
CAT-Net requires a JPEG image as input but the inference code automatically converts a non-JPEG image to JPEG at the very beginning. |
@CauchyComplete Do we need to convert all the images into jpg before training? If yes, why there are still images with .tiff and .png extension in the lists you provided. Please response to this query as I am getting the following error. [LIBJPEG ERROR]: Not a JPEG file: starts with 0x49 0x49 |
In the inference dataset(dataset='arbitrary'), non-JPEG images are automatically converted to JPEG files and plugged into the model: Line 75 in f1716b0
During training, we should manually convert them into JPEG files. I implemented it like this for speed-up training because training uses converted files multiple times. |
When inference, do I need to convert image to jpg format first? Thanks
The text was updated successfully, but these errors were encountered: