Closed aditipanda closed 4 months ago
If the error only occurs later I could imagine that it has to do something with the image dimensions. Usually having images with different dimensions in a single batch leads to problems. You could set the batch size to 1.
Please note that in this repository we simply adapted the models from their original repositories, so you could also use their repositories directly or open an issue there: https://github.com/polimi-ispl/gan-image-detection (for Mandelli2022).
I am evaluating the pre-trained models on my dataset, and I finished with wang and gragnaniello. But for mandelli, the inference begins - runs till 36th epoch then throws this error:
Did some google search and found a variation of collate_fn for the DataLoader:
Put this in wrappers.py, while calling dataloader, but now getting another error:
Pls help! Also, do all my images have to be of the same size?