Skip to content
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

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

Open
Sun-researcher opened this issue Dec 19, 2023 · 6 comments

Comments

@Sun-researcher
Copy link

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
Copy link

Ding-yd commented Jan 26, 2024

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

@Sun-researcher
Copy link
Author

那兄弟该怎么办

@Ding-yd
Copy link

Ding-yd commented Feb 25, 2024

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

@Usriscedjdj
Copy link

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

@Sun-researcher
Copy link
Author

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

@Usriscedjdj
Copy link

Usriscedjdj commented Mar 21, 2024

老兄有没有跑通,可否加个vx交流一下?
[email protected],这是邮箱

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants