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

RuntimeError: Only one file(not dir) is allowed in the zipfile #147

Open
417302821 opened this issue Jul 23, 2021 · 0 comments
Open

RuntimeError: Only one file(not dir) is allowed in the zipfile #147

417302821 opened this issue Jul 23, 2021 · 0 comments

Comments

@417302821
Copy link

hello, I can't find how to solve this problem. I even can't find any zipfile in this project, can anybody help me?The error is as followed:

python swap.py ../docs/examples/shinzo_abe.mp4 -t ../docs/examples/conan_obrien.mp4 -o . --finetune --finetune_save --seg_remove_mouth

Traceback (most recent call last):
File "swap.py", line 506, in
main(**vars(parser.parse_args()))
File "swap.py", line 482, in main
face_swapping = FaceSwapping(
File "swap.py", line 113, in init
super(FaceSwapping, self).init(
File "../../fsgan/preprocess/preprocess_video.py", line 159, in init
self.face_detector = FaceDetector(det_postfix, detection_model, gpus, det_batch_size, display)
File "../face_detection_dsfd/face_detector.py", line 32, in init
self.net = SSD("test").to(self.device)
File "../face_detection_dsfd/face_ssd_infer.py", line 330, in init
resnet = torchvision.models.resnet152(pretrained=True)
File "/root/anaconda3/lib/python3.8/site-packages/torchvision/models/resnet.py", line 324, in resnet152
return _resnet('resnet152', Bottleneck, [3, 8, 36, 3], pretrained, progress,
File "/root/anaconda3/lib/python3.8/site-packages/torchvision/models/resnet.py", line 262, in _resnet
state_dict = load_state_dict_from_url(model_urls[arch],
File "/root/anaconda3/lib/python3.8/site-packages/torch/hub.py", line 490, in load_state_dict_from_url
raise RuntimeError('Only one file(not dir) is allowed in the zipfile')
RuntimeError: Only one file(not dir) is allowed in the zipfile

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