DJW cdece0b32a 第一次提交 | 10 meses atrás | |
---|---|---|
.. | ||
configs | 10 meses atrás | |
models | 10 meses atrás | |
README.md | 10 meses atrás |
A README.md template for releasing a project.
All the fields in this README are mandatory for others to understand what you have achieved in this implementation. Please read our Projects FAQ if you still feel unclear about the requirements, or raise an issue to us!
Share any information you would like others to know. For example:
Author: @xxx.
This is an implementation of [XXX].
Author: @xxx.
This project implements a top-down pose estimator with custom head and loss functions that have been seamlessly inherited from existing modules within MMPose.
For a typical model, this section should contain the commands for training and testing. You are also suggested to dump your environment specification to env.yml by
conda env export > env.yml
.
All the commands below rely on the correct configuration of PYTHONPATH
, which should point to the project's directory so that Python can locate the module files. In example_project/
root directory, run the following line to add the current directory to PYTHONPATH
:
export PYTHONPATH=`pwd`:$PYTHONPATH
Prepare the COCO dataset according to the instruction.
To train with single GPU:
mim train mmpose configs/example-head-loss_hrnet-w32_8xb64-210e_coco-256x192.py
To train with multiple GPUs:
mim train mmpose configs/example-head-loss_hrnet-w32_8xb64-210e_coco-256x192.py --launcher pytorch --gpus 8
To train with multiple GPUs by slurm:
mim train mmpose configs/example-head-loss_hrnet-w32_8xb64-210e_coco-256x192.py --launcher slurm \
--gpus 16 --gpus-per-node 8 --partition $PARTITION
To test with single GPU:
mim test mmpose configs/example-head-loss_hrnet-w32_8xb64-210e_coco-256x192.py $CHECKPOINT
To test with multiple GPUs:
mim test mmpose configs/example-head-loss_hrnet-w32_8xb64-210e_coco-256x192.py $CHECKPOINT --launcher pytorch --gpus 8
To test with multiple GPUs by slurm:
mim test mmpose configs/example-head-loss_hrnet-w32_8xb64-210e_coco-256x192.py $CHECKPOINT --launcher slurm \
--gpus 16 --gpus-per-node 8 --partition $PARTITION
List the results as usually done in other model's README. Here is an Example.
You should claim whether this is based on the pre-trained weights, which are converted from the official release; or it's a reproduced result obtained from retraining the model in this project
Model | Backbone | Input Size | AP | AP50 | AP75 | AR | AR50 | Download |
---|---|---|---|---|---|---|---|---|
ExampleHead + ExampleLoss | HRNet-w32 | 256x912 | 0.749 | 0.906 | 0.821 | 0.804 | 0.945 | model | log |
You may remove this section if not applicable.
@misc{mmpose2020,
title={OpenMMLab Pose Estimation Toolbox and Benchmark},
author={MMPose Contributors},
howpublished = {\url{https://github.com/open-mmlab/mmpose}},
year={2020}
}
Here is a checklist of this project's progress. And you can ignore this part if you don't plan to contribute to MMPose projects.
The PIC (person in charge) or contributors of this project should check all the items that they believe have been finished, which will further be verified by codebase maintainers via a PR.
OpenMMLab's maintainer will review the code to ensure the project's quality. Reaching the first milestone means that this project suffices the minimum requirement of being merged into 'projects/'. But this project is only eligible to become a part of the core package upon attaining the last milestone.
Note that keeping this section up-to-date is crucial not only for this project's developers but the entire community, since there might be some other contributors joining this project and deciding their starting point from this list. It also helps maintainers accurately estimate time and effort on further code polishing, if needed.
A project does not necessarily have to be finished in a single PR, but it's essential for the project to at least reach the first milestone in its very first PR.
[ ] Milestone 1: PR-ready, and acceptable to be one of the projects/
.
The code's design shall follow existing interfaces and convention. For example, each model component should be registered into
mmpose.registry.MODELS
and configurable via a config file.
Each major class should contains a docstring, describing its functionality and arguments. If your code is copied or modified from other open-source projects, don't forget to cite the source project in docstring and make sure your behavior is not against its license. Typically, we do not accept any code snippet under GPL license. A Short Guide to Open Source Licenses
If you are reproducing the result from a paper, make sure your model's inference-time performance matches that in the original paper. The weights usually could be obtained by simply renaming the keys in the official pre-trained weights. This test could be skipped though, if you are able to prove the training-time correctness and check the second milestone.
As this template does.
[ ] Milestone 2: Indicates a successful model implementation.
If you are reproducing the result from a paper, checking this item means that you should have trained your model from scratch based on the original paper's specification and verified that the final result matches the report within a minor error range.
[ ] Milestone 3: Good to be a part of our core package!
Ideally all the methods should have type hints and docstrings. Example
Unit tests for the major module are required. Example
Refactor your code according to reviewer's comment.
It will be parsed by MIM and Inferencer. Example
In particular, you may have to refactor this README into a standard one. Example