Git Product home page Git Product logo

Comments (11)

Debanik avatar Debanik commented on August 18, 2024 21

Perhaps, this can work. Search for xception-b5690688.pth in this URL.

from faceforensics.

elsobhano avatar elsobhano commented on August 18, 2024 2
  1. Download the .pth file from http://data.lip6.fr/cadene/pretrainedmodels/xception-b5690688.pth.
  2. Add the file into your project.
  3. Modify the code in Line26 models.py
    state_dict = torch.load('/home/ondyari/.torch/models/xception-b5690688.pth')
    then
    state_dict = torch.load('/your_dir/xception-b5690688.pth')

Thanks for download link.
I download this .pth file just by using one line Linux code
I think this is useful for every body
'wget http://data.lip6.fr/cadene/pretrainedmodels/xception-b5690688.pth --no-check-certificate'

from faceforensics.

MitchellX avatar MitchellX commented on August 18, 2024 1

@MohamedHalith10 @harrykeepstudy
vim FaceForensics/classification/network/models.py
have a look at line 26

from faceforensics.

haqkiemdaim avatar haqkiemdaim commented on August 18, 2024

Perhaps, this can work. Search for xception-b5690688.pth in this URL.

Hi there @Debanik , have you successfully run the codes? Cuz im currently stuck at model.cuda() and i received below error:

AttributeError: 'OrderedDict' object has no attribute 'cuda'

Hoping that you could give me some ideas how to solve it.

from faceforensics.

Debanik avatar Debanik commented on August 18, 2024

Perhaps, this can work. Search for xception-b5690688.pth in this URL.

Hi there @Debanik , have you successfully run the codes? Cuz im currently stuck at model.cuda() and i received below error:

AttributeError: 'OrderedDict' object has no attribute 'cuda'

Hoping that you could give me some ideas how to solve it.

I did run it on, although the machine didn't have a Cuda enabled GPU.
Also, my custom requirements file can be found inside my forked repo:
https://github.com/Debanik/FaceForensics.git
which has a custom requirements file at:
classification/my_requirements.txt
Hope it helps.

from faceforensics.

hzh-hgz avatar hzh-hgz commented on August 18, 2024

Perhaps, this can work. Search for xception-b5690688.pth in this URL.

Hi there @Debanik , have you successfully run the codes? Cuz im currently stuck at model.cuda() and i received below error:

AttributeError: 'OrderedDict' object has no attribute 'cuda'

Hoping that you could give me some ideas how to solve it.

hello @haqkiemdaim , i have the same problem with you. Have you solved the problem now?thank you .

from faceforensics.

haqkiemdaim avatar haqkiemdaim commented on August 18, 2024

@hzh-hgz Haven't yet

from faceforensics.

beibuwandeluori avatar beibuwandeluori commented on August 18, 2024

FaceForensics/classification/network/models.py", line 26, in return_pytorch04_xception
'/home/ondyari/.torch/models/xception-b5690688.pth')
you can change the mode_path in your code, you can download the pretrain model in this

from faceforensics.

MohamedHalith10 avatar MohamedHalith10 commented on August 18, 2024

FaceForensics/classification/network/models.py", line 26, in return_pytorch04_xception
'/home/ondyari/.torch/models/xception-b5690688.pth')
you can change the mode_path in your code, you can download the pretrain model in this

how to change path

from faceforensics.

harrykeepstudy avatar harrykeepstudy commented on August 18, 2024

Is there anyone solved the [ changing path ] problem? Which code I need to change the path? Or where to put [ xception-b5690688.pth ]? Thank you very much!!

from faceforensics.

RacerChen avatar RacerChen commented on August 18, 2024
  1. Download the .pth file from http://data.lip6.fr/cadene/pretrainedmodels/xception-b5690688.pth.
  2. Add the file into your project.
  3. Modify the code in Line26 models.py
    state_dict = torch.load('/home/ondyari/.torch/models/xception-b5690688.pth')
    then
    state_dict = torch.load('/your_dir/xception-b5690688.pth')

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.