./src/text2pose
.
- Inputs (#2): a pair of 3D human poses (pose A + pose B);
- Output: textual instruction explaining how to go from pose A to pose B.
To generate text instructions based on a pretrained model and examples of 3D human pose pairs, run the following:
streamlit run generative_modifier/demo_generative_modifier.py -- --model_paths </path/to/model.pth>
💡 Tips: Specify several model paths to compare models together.
At the beginning of the bash script, indicate the shortnames of the trained models used for evaluation:
fid
: text-to-pose retrieval model (info),pose_generative_model
: text-guided pose editing model (info),textret_model
: pair-to-text retrieval model (info).
Indicate the paths to the models corresponding to each of these shortnames in shortname_2_model_path.txt.
📝 Modify the variables at the top of the bash script to specify the desired model & training options.
Then use the following command:
bash generative_modifier/script_generative_modifier.sh 'train' <training phase: pretrain|finetune> <seed number>
Note for the finetuning step: In the script, pretrained
defines the nickname of the pretrained model. The mapping between nicknames and actual model paths is given by shortname_2_model_path.txt. This means that if you train a model and intend to use its weights to train another, you should first write its path in shortname_2_model_path.txt, give it a nickname, and write this nickname in front of the pretrained
argument in the script. The nickname will appear in the path of the finetuned model.
Use the following command:
bash generative_modifier/script_generative_modifier.sh 'eval' </path/to/model.pth>