You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: