Git Product home page Git Product logo

Comments (2)

hzhumsc avatar hzhumsc commented on August 19, 2024

When I loaded provided Meso pretrained model, I got this:

Traceback (most recent call last):
  File "detect_from_image.py", line 182, in <module>
    prob = test_full_image_network(image_path, args.model_path, True)
  File "detect_from_image.py", line 129, in test_full_image_network
    model = torch.load(model_path)
  File "/data/***/miniconda3/lib/python3.6/site-packages/torch/serialization.py", line 386, in load
    return _load(f, map_location, pickle_module, **pickle_load_args)
  File "/data/***/miniconda3/lib/python3.6/site-packages/torch/serialization.py", line 563, in _load
    magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, 'H'.

The Meso pretrained model is downloaded from provided link in this repo and the detect_from_image.py is obtained by modifying original detect_from_video.py.

I think this is because the Pytorch only supports weight file such as .pth, the .h5 weight file is used in Caffe and Tensorflow. So what should I do to solve this problem? Have some other test shell to use?

Thanks~:)

Hello, Daisy. I think you can load the pre-trained model here provided by Andreas and go back to the author(Afchar) of Mesonet to use the original evaluation pipeline there.

from faceforensics.

riolys avatar riolys commented on August 19, 2024

Hello, Daisy.I wonder if you solved this question?I want to use the pre-trained model of face detector but have not found one, can u give some solutions?

from faceforensics.

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.