Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transfer Learning for new/custom dataset #71

Open
soans1994 opened this issue Feb 17, 2021 · 4 comments
Open

Transfer Learning for new/custom dataset #71

soans1994 opened this issue Feb 17, 2021 · 4 comments

Comments

@soans1994
Copy link

Dear Authors,

Great work of pose detection using TensorFlow. I have doubts regarding training a custom dataset. What is the approach for improving the detection of human poses.

  1. Should i add the custom dataset annotation json file to the original coco json file and train.
  2. Or, is there a way to fine tune the previously trained model for COCO dataset (train from checkpoints or best output model).
  3. Or, transfer learn by freezing some layers.

I am not sure the difference between 2 and 3. Can you please help me with some information.

Thank You

@mks0601
Copy link
Owner

mks0601 commented Feb 17, 2021

If your custom dataset is similar to MSCOCO, the 1st option is good.
Else if your custom dataset is very small and very different from MSCOCO, then the 2nd option seems good.
The 3rd option seems not good.

@soans1994
Copy link
Author

soans1994 commented Feb 17, 2021

@mks0601 thank you. Yes my dataset is small but contains many images of a person sitting. The coco model doesn’t give good detection because of lack of sitting images from various angles in the coco dataset.
Can you give an example how to train using fine tuning (2nd option), I can train my dataset into a new mode, but I also want the benefit of coco dataset.

@mks0601
Copy link
Owner

mks0601 commented Feb 17, 2021

You can just load pre-trained model and continue training on your dataset.

@soans1994
Copy link
Author

@mks0601 can you give an example command to continue training in tensorflow. Previously I tried caffe version of openpose for training.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants