chail / patch-forensics

Investigating patches for fake image classification
130 stars 18 forks source link

Some question for reproduce #6

Open xxxxoo000xxo opened 3 years ago

xxxxoo000xxo commented 3 years ago

Thank you for your wonderful work on GAN generated image detection. Since most experiments in your paper are performed on person instead of other objects, we have tried to test your model on the dataset provided by CNNDetector ([33] in your paper). The experiment is performed on a workstation with Windows system, and we follow the guide in Readme (what we modified is only the data path), but we cannot run it correctly. It shows "TypeError: cannot serialize '_io.TextIOWrapper' object", at 'for i, data in enumerate(dl):' in test.py.

Would you pleased provide some advice ? Hope for your reply soon.

chail commented 2 years ago

Hi, unfortunately I haven't tested it on a Windows system. I'm not certain if it would be caused by input path; seems that the UnpairedDataset object takes in a path which is directly a folder of images (without subfolders). One difference to note between CNNDetector and the models here is that these models were trained exclusively on face domain.