Code Monkey home page Code Monkey logo

Comments (7)

Gao-JT avatar Gao-JT commented on September 13, 2024 4

@naeem7789 Hello, my code ran on the desktop, which may be a little different from your situation. When you use the code 'torch.hub.load()' to create the pre-trained model, the folder ‘ ~/.cache/torch/hub/’ will be created automatically to store the downloaded files and the pre-trained model checkpoint.
image
If your code is run on kaggle.com notebook, I think you can do the following:
a. Copy the code into your own code
b. Use the function resnext101_32x48d_wsl() copied into your code to replace the code ‘model = torch.hub.load('facebookresearch/WSL-Images', 'resnext101_32x48d_wsl')’ to load the pre-trained model.
If you still have questions, you can continue to contact me. Good luck !

from wsl-images.

Gao-JT avatar Gao-JT commented on September 13, 2024 1

I have solved this problem. @saarimrahman The solution is:
a. manually download this code
b. unzip and put it under ~/.cache/torch/hub/
c. finally rename it to facebookresearch_WSL-Images_master. Then you can run your code successfully.

from wsl-images.

saarimrahman avatar saarimrahman commented on September 13, 2024 1

I ended up resolving this by downloading the checkpoint for the model from this repo, and copying over the model instantiation & definition from here. Then once I instantiated the model, I loaded the weights using the checkpoint I downloaded.

from wsl-images.

Gao-JT avatar Gao-JT commented on September 13, 2024

I have the same problem. Hope you can help to solve it. Looking forward to your reply!

from wsl-images.

naeem7789 avatar naeem7789 commented on September 13, 2024

@Gao-JT we are facing the same problem.
Can you elaborate where we have to create that ~/.cache/torch/hub/?

from wsl-images.

naeem7789 avatar naeem7789 commented on September 13, 2024

We are running the code on kaggle.com notebook

from wsl-images.

naeem7789 avatar naeem7789 commented on September 13, 2024

@Gao-JT , Thank you Sir , its working

from wsl-images.

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.