Giter VIP home page Giter VIP logo

Comments (12)

D-X-Y avatar D-X-Y commented on July 23, 2024

Would you mind to provide more information?

from landmark-detection.

hsl20130659 avatar hsl20130659 commented on July 23, 2024

snapshot = torch.load(snapshot,map_location='cpu')

I try load the pretrained model downloaded from the google cloud you provided ,but it does not work

from landmark-detection.

D-X-Y avatar D-X-Y commented on July 23, 2024

Would you mind to provide how do you place the snapshot file and provide a link to this code"snapshot = torch.load(snapshot,map_location='cpu')"?

from landmark-detection.

hsl20130659 avatar hsl20130659 commented on July 23, 2024

I run the san_eval.py on CPU, I modified the
snapshot = torch.load(snapshot)
to
snapshot = torch.load(snapshot,map_location='cpu')

from landmark-detection.

D-X-Y avatar D-X-Y commented on July 23, 2024

Did you exactly run "python san_eval.py --image ./cache_data/cache/test_1.jpg --model ./snapshots/SAN_300W_GTB_itn_cpm_3_50_sigma4_128x128x8/checkpoint_49.pth.tar --face 819.27 432.15 971.70 575.87 --save_path temp_1.png"?

from landmark-detection.

hsl20130659 avatar hsl20130659 commented on July 23, 2024

yes , I put the args into the argparse.ArgumentParser

from landmark-detection.

D-X-Y avatar D-X-Y commented on July 23, 2024

I just add the CPU support for san_eval.py, and tried, but I did not find your issues.
Please make sure "checkpoint_49.pth.tar" is at snapshots/SAN_300W_GTB_itn_cpm_3_50_sigma4_128x128x8
image

from landmark-detection.

hsl20130659 avatar hsl20130659 commented on July 23, 2024

I just replace the san_eval.py you modified ,it still does not work ,the problem is all the same

from landmark-detection.

D-X-Y avatar D-X-Y commented on July 23, 2024

Can you just share a screenshot of your error?

from landmark-detection.

hsl20130659 avatar hsl20130659 commented on July 23, 2024

bug

from landmark-detection.

D-X-Y avatar D-X-Y commented on July 23, 2024

It might be caused by the PyThon version. I use Python 3.6 to save the model, but you are using Python 3.5. I also have this problem sometimes when load a model saved in different Python version. Would you mind to try Python 3.6?

from landmark-detection.

hsl20130659 avatar hsl20130659 commented on July 23, 2024

tks, I have run it on Python3.6 and it really works.

from landmark-detection.

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.