megvii-research / CADDM

Official implementation of ID-unaware Deepfake Detection Model
Apache License 2.0
146 stars 21 forks source link

KeyError: './train_images/manipulated_sequences/Deepfakes/raw/frames/585_599/frame_0 #34

Open Sun-researcher opened 9 months ago

Sun-researcher commented 9 months ago

Traceback (most recent call last): File "train.py", line 151, in train() File "train.py", line 102, in train train_dataset = DeepfakeDataset('train', cfg) File "/home/lab/tSun/CADDM-master/dataset.py", line 37, in init self.samples = self.collect_samples() File "/home/lab/tSun/CADDM-master/dataset.py", line 56, in collect_samples info_meta = self.info_meta_dict[info_key]
KeyError: './train_images/manipulated_sequences/Deepfakes/raw/frames/585_599/frame_0'

I ran into this problem while running the program. Can you help me solve it!

Ding-yd commented 8 months ago

我的是在使用test.py时出现的相同问题,这是因为在使用extract...py 处理数据集时所生成的json文件中的许多图片,其实在train_images或者test_images的图片文件夹之下并不存在

Sun-researcher commented 7 months ago

那兄弟该怎么办

Ding-yd commented 7 months ago

没想出好的解决方法,就把提取的frame对应的source_img都设置成original中的frame_0

Usriscedjdj commented 6 months ago

image 请问我这个问题是因为json文件有问题吗?

Sun-researcher commented 6 months ago

应该不是吧,我也遇见这个问题

Usriscedjdj commented 6 months ago

老兄有没有跑通,可否加个vx交流一下? 2963780474@qq.com,这是邮箱