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

[BUG]lrl_detector test #108

Open
Ftgn-dpA opened this issue Sep 24, 2024 · 0 comments
Open

[BUG]lrl_detector test #108

Ftgn-dpA opened this issue Sep 24, 2024 · 0 comments

Comments

@Ftgn-dpA
Copy link

出现问题:keyerror: 'idct'
检查到test.py中prepare_testing_data函数未给lrl配置lrl_dataset
修改后代码:

        if not config.get('dataset_type', None) == 'lrl':
            test_set = DeepfakeAbstractBaseDataset(
                config=config,
                mode='test',
            )
        else:
            test_set = LRLDataset(
                config=config,
                mode='test',
            )

test_one_dataset中将idct move to device:

        # lrl idct data
        idct = data_dict.get('idct')
        if idct is not None:
            data_dict['idct'] = idct.to(device)
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

1 participant