Code Monkey home page Code Monkey logo

Comments (5)

rkhilnani9 avatar rkhilnani9 commented on July 20, 2024

Apologies. Using torch==1.2.0

from self-correction-human-parsing.

VyBui avatar VyBui commented on July 20, 2024

@rkhilnani9 I have got the same issue, but when I switched to use torch 1.5.1, torchvision 0.6.1. The issue no longer exists.

from self-correction-human-parsing.

rkhilnani9 avatar rkhilnani9 commented on July 20, 2024

@VyBui Thanks! That error is no longer there and I am almost able to train the model.

Faced another error in train.py though. Would you happen to know anything about this?

Traceback (most recent call last):
File "train.py", line 231, in
main()
File "train.py", line 94, in main
AugmentCE2P = networks.init_model(args.arch, num_classes=args.num_classes, pretrained=args.imagenet_pretrain) File "/rapids/notebooks/atcdata/rkhilnan/Self-Correction-Human-Parsing/networks/init.py", line 13, in init_model return __factory[name](*args, **kwargs)
File "/rapids/notebooks/atcdata/rkhilnan/Self-Correction-Human-Parsing/networks/AugmentCE2P.py", line 336, in resnet101
initialize_pretrained_model(model, settings, pretrained)
File "/rapids/notebooks/atcdata/rkhilnan/Self-Correction-Human-Parsing/networks/AugmentCE2P.py", line 330, in initialize_pretrained_model
model.load_state_dict(new_params)
File "/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 847, in load_state_dict self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for ResNet:
Unexpected key(s) in state_dict: "state_dict".

from self-correction-human-parsing.

rkhilnani9 avatar rkhilnani9 commented on July 20, 2024

So I want to try out the exp-schp-pascal-person.pth model, and I have downloaded the weights and saved it in pretrained_model folder inside my repo. Do I also have to download resnet-101.pth?

from self-correction-human-parsing.

VyBui avatar VyBui commented on July 20, 2024

@rkhilnani9 I have not seen that error yet.

Yes, you have to download resnet101-imagenet.pth and place it in the pretrained_model

from self-correction-human-parsing.

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.