{Pose-Pair :leftrightarrow: Instruction} Retrieval Model
June 19, 2024 ยท View on GitHub
:warning: In what follows, command lines are assumed to be launched from ./src/text2pose.
Model overview
Possible inputs: a pair of 3D human poses (ie. two elements at once), text instruction.

:crystal_ball: Demo
To look at a ranking of text instruction (resp. pose pair) referenced in PoseFix by relevance to a chosen pose pair (resp. text instruction), using a pretrained model, run the following:
bash retrieval_modifier/script_retrieval_modifier.sh 'demo' </path/to/model.pth>
:bullettrain_front: Train
:memo: Modify the variables at the top of the bash script to specify the desired model & training options.
Then use the following command:
bash retrieval_modifier/script_retrieval_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.
:dart: Evaluate
Use the following command (test on PoseFix-H):
bash retrieval_modifier/script_retrieval_modifier.sh 'eval' </path/to/model.pth>