Code Monkey home page Code Monkey logo

Comments (5)

kunncheng avatar kunncheng commented on July 16, 2024 2

Please provide complete error information.

Which line of code caused the error?

from video-retalking.

w4l6 avatar w4l6 commented on July 16, 2024

多谢。错误信息如下

File "inference.py"Tine 342. in main0File "inference.py", Tine 33, in mainsize=512,mode1="GPEN-BFR-512',enhancer = FaceEnhancement(base dir='checkpoints'use sr=False.File "/root/autodl-tmp/video-retalking/third_part/GPEN/gpen_face_enhancer.py”,Tine 18. in initself.facedetector = RetinaFaceDetection(base dirdewice)File/root/autodI-tmp/video-retalking/third part/GPEN/face detect/retinaface detection.py", Tine 27, in initself.load mode1()File "/root/autodl-tmp/video-retalking/third part/GPEN/face detect/retinaface detection.py", Tine 51, in load modeFi'eetrrone monsconda3/envsaatsrkinorefpainenonatk stap-pocatdon torch, deviee cpuon pv", line 608. in loadreturnlegacy load(openedocation.pickle module.**pickle load args)m30File "/root/miniconda3/envs/retalking/lib/python3.8/site-packages/torch/serialization.py", line 794, in _legacy_loadeserialized obiects[key7.set from file(foffset.f should read directly)untimeError: storage has wrona size:expected 0 got 256

from video-retalking.

w4l6 avatar w4l6 commented on July 16, 2024

错误信息如下。多谢多谢

[Info] Using cuda for inference.
Traceback (most recent call last):
File "inference.py", line 342, in
main()
File "inference.py", line 33, in main
enhancer = FaceEnhancement(base_dir='checkpoints', size=512, model='GPEN-BFR-512', use_sr=False,
File "/root/autodl-tmp/video-retalking/third_part/GPEN/gpen_face_enhancer.py", line 18, in init
self.facedetector = RetinaFaceDetection(base_dir, device)
File "/root/autodl-tmp/video-retalking/third_part/GPEN/face_detect/retinaface_detection.py", line 27, in init
self.load_model()
File "/root/autodl-tmp/video-retalking/third_part/GPEN/face_detect/retinaface_detection.py", line 51, in load_model
pretrained_dict = torch.load(self.pretrained_path, map_location=torch.device('cpu'))
File "/root/miniconda3/envs/retalking/lib/python3.8/site-packages/torch/serialization.py", line 608, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/root/miniconda3/envs/retalking/lib/python3.8/site-packages/torch/serialization.py", line 794, in _legacy_load
deserialized_objects[key]._set_from_file(f, offset, f_should_read_directly)
RuntimeError: storage has wrong size: expected 0 got 256

from video-retalking.

kunncheng avatar kunncheng commented on July 16, 2024

可能是retinaface预训练模型下载过程中出现问题,可以试试重新下载一下

from video-retalking.

w4l6 avatar w4l6 commented on July 16, 2024

多谢多谢

from video-retalking.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.