Comments (2)
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 thedetect_from_image.py
is obtained by modifying originaldetect_from_video.py
.I think this is because the
Pytorch
only supports weight file such as.pth
, the.h5
weight file is used inCaffe
andTensorflow
. 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.
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)
- Getting an error when executing the code related to downloading the database HOT 12
- size mismatch for block1.rep.0.pointwise.weight: copying a param with shape torch.Size([128, 64]) from checkpoint, the shape in current model is torch.Size([128, 64, 1, 1]). HOT 1
- What is the forgery method corresponding to each downloaded video?
- Can you share the compression's parameter settings? HOT 1
- Issue with downloading the dataset HOT 3
- FF v1 download way broken! (我下载不了FaceForensics,求求) HOT 3
- Error while downloading the dataset
- ConnectionResetError: [Errno 104] Connection reset by peer
- HTTPError HOT 2
- can't open file 'download-Faceforensics.py' HOT 3
- http://kaldir.vc.in.tum.de/faceforensics_download_v4.py
- The problem with xception-b5690688.pth model
- download script broken HOT 1
- qt connet issue while running detect_from_video.py HOT 1
- Image Level or Video Level?
- Download Question HOT 51
- ConnectionRefusedError: [Errno 111] Connection refused HOT 5
- ConnectionRefusedError-Solved HOT 3
- <urlopen error [WinError 10061] No connection could be made because the target machine actively refused it> HOT 3
- Failed to download DeepfakeDetection dataset HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faceforensics.