Git Product home page Git Product logo

Comments (6)

khanhha avatar khanhha commented on August 23, 2024

UPDATE:

I have changed the pretrained field in model settings in configs/top_down/hrnet/coco/hrnet_w48_coco_384x288.py using the URL "https://open-mmlab.s3.ap-northeast-2.amazonaws.com/pretrain/third_party/hrnetv2_w48-d2186c55.pth", but the error still occurs.

I debugged the function checkpoint.py/load_state_dict, and the list missing_keys is now empty, but the unexpected_keys is still not empty.

Could you please help me explain this problem? Should I revert to an old version of the repos to get compatibility?

from mmpose.

jin-s13 avatar jin-s13 commented on August 23, 2024

We did not expect the user to load a COCO trained model as pretrained. Currently, it only supports using imagenet-pretrained model.
We will fix this part today.

from mmpose.

Canwang-sjtu avatar Canwang-sjtu commented on August 23, 2024

First, did you modify the model structure?
Second, in the second line of configs/top_down/hrnet/coco/hrnet_w48_coco_384x288.py, you may use load_from = hrnet_w48_coco_384x288-314c8528_20200708.pth and set pretrained=None in line 42

from mmpose.

jin-s13 avatar jin-s13 commented on August 23, 2024

UPDATE:

I have changed the pretrained field in model settings in configs/top_down/hrnet/coco/hrnet_w48_coco_384x288.py using the URL "https://open-mmlab.s3.ap-northeast-2.amazonaws.com/pretrain/third_party/hrnetv2_w48-d2186c55.pth", but the error still occurs.

I debugged the function checkpoint.py/load_state_dict, and the list missing_keys is now empty, but the unexpected_keys is still not empty.

Could you please help me explain this problem? Should I revert to an old version of the repos to get compatibility?

Don't worry, it is normal to have unexpected_keys for HRNet. Please just ignore it.

from mmpose.

khanhha avatar khanhha commented on August 23, 2024

Fantastic!

Thank you very much for your support.

When I set pretrained to None, and set load_from to point to "hrnet_w48_coco_384x288-314c8528_20200708.pth". The pre-trained model is smoothly. missing_keys and unexpected_keys are empty now.

I hope that you add pre-training from COCO soon. It would be tremendously helpful if we can fine-tune from pre-trained model on COCO.

Again, thank you for your valuable works. The code is very well-organized and clean, the supported models are diverse, the model zoo is awesome. This is the best pose open-source project I have came across.

Best.

from mmpose.

khanhha avatar khanhha commented on August 23, 2024

PS. I don't change the model architecture. Just the path in the data-settings, and data_cfg.use_gt_bbox to True because PoseTrack doesn't have bb detections.

from mmpose.

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.