Refactor model configuration with a model registry #15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request updates the model loading and configuration system for FMPose3D and Animal3D workflows, moving from direct file path imports to a model registry approach. This makes it easier to specify models by name, improves reproducibility, and standardizes script arguments. It also updates pretrained model references and cleans up related scripts.
Model loading and registry improvements:
get_modeland--model_typefor both human and animal 3D pose estimation; updated code inmain_animal3d.py,vis_animals.py, andFMPose3D_main.pyto use this registry. [1] [2] [3]Model) with the registry via@register_model("fmpose3d_animals")and made it inherit fromBaseModel.--model_type(defaulting tofmpose3d_animals) and clarified the use of--model_pathas an override.Script and configuration updates:
train_animal3d.sh,test_animal3d.sh,vis_animals.sh,FMPose3D_train.sh,FMPose3D_test.sh) to use--model_typeinstead of--model_path, and set new default paths for pretrained weights. [1] [2] [3] [4] [5] [6] [7] [8] [9]Minor improvements and cleanup: