文件最后提交记录最后更新时间
init 4 年前
!2206 [自研][Pytorch]解决ReidStrongBaseline八卡训练卡死问题 * 解决ReidStrongBaseline八卡训练卡死问题 3 年前
init 4 年前
!2278 [自研][Pytorch]ReidStrongBaseline区分单卡不走ddp的情况 !2278 [自研][Pytorch]ReidStrongBaseline区分单卡不走ddp的情况 3 年前
init 4 年前
!5266 【pytorch】【contrib】【cv】修复训练问题 * 【pytorch】【contrib】【cv】修复训练问题,修改codecheck * 【pytorch】【contrib】【cv】修复训练问题 2 年前
init 4 年前
!4671 【fix】批量修改模型python版本,兼容环境上的python3.8版本 * fix python version 3 年前
init 4 年前
!2206 [自研][Pytorch]解决ReidStrongBaseline八卡训练卡死问题 * 解决ReidStrongBaseline八卡训练卡死问题 3 年前
init 4 年前
!5261 【pytorch】【contrib】【cv】 模型公网地址整改 * 【pytorch】【contrib】【cv】 模型公网地址整改 2 年前
fix link validity Co-authored-by: frozenleaves<914814442@qq.com> # message auto-generated for no-merge-commit merge: !7517 merge master into master fix link validity Created-by: frozenn Commit-by: frozenleaves Merged-by: ascend-robot Description: ## Motivation Please describe the motivation of this PR and the goal you want to achieve through this PR. ## Modification Please briefly describe what modification is made in this PR. ## Self-test (Optional) If modifications to this PR may cause/fix function/accuracy/performance DTSs/issues, a self-inspection record needs to be attached. ## BC-breaking (Optional) If there are compatibility issues, such as dependencies on cann/torch_npu versions, they need to be explained in the PR. ## Checklist **Before PR**: - [ ] The new code needs to comply with the Clean Code specification. - [ ] The PR content is self-checked, and the expression can be clear and the writing standardized **After PR**: - [ ] CLA has been signed and all committers have signed the CLA in this PR. - [ ] The ci-pipeline is passed, Code Check is passed. See merge request: Ascend/ModelZoo-PyTorch!75171 个月前
!1208 [PyTorch]pytorch模型torch版本判断由“1.8.1”改为“1.8” * 更正SimCLR模型LICENSE文件后缀 * pytorch模型torch版本判断由“1.8.1”改为“1.8” 3 年前
init 4 年前
!1499 【众智】【Pytorch】【ReidStrongBaseline】动态loss scale 改为静态 !1499 【众智】【Pytorch】【ReidStrongBaseline】动态loss scale 改为静态 3 年前
!1208 [PyTorch]pytorch模型torch版本判断由“1.8.1”改为“1.8” * 更正SimCLR模型LICENSE文件后缀 * pytorch模型torch版本判断由“1.8.1”改为“1.8” 3 年前
!1499 【众智】【Pytorch】【ReidStrongBaseline】动态loss scale 改为静态 !1499 【众智】【Pytorch】【ReidStrongBaseline】动态loss scale 改为静态 3 年前
fix link validity Co-authored-by: frozenleaves<914814442@qq.com> # message auto-generated for no-merge-commit merge: !7517 merge master into master fix link validity Created-by: frozenn Commit-by: frozenleaves Merged-by: ascend-robot Description: ## Motivation Please describe the motivation of this PR and the goal you want to achieve through this PR. ## Modification Please briefly describe what modification is made in this PR. ## Self-test (Optional) If modifications to this PR may cause/fix function/accuracy/performance DTSs/issues, a self-inspection record needs to be attached. ## BC-breaking (Optional) If there are compatibility issues, such as dependencies on cann/torch_npu versions, they need to be explained in the PR. ## Checklist **Before PR**: - [ ] The new code needs to comply with the Clean Code specification. - [ ] The PR content is self-checked, and the expression can be clear and the writing standardized **After PR**: - [ ] CLA has been signed and all committers have signed the CLA in this PR. - [ ] The ci-pipeline is passed, Code Check is passed. See merge request: Ascend/ModelZoo-PyTorch!75171 个月前
[众智][PyTorch]整改模型中的requirements.txt文件,删除torch,apex Signed-off-by: bailang <bailang12@h-partners.com> 3 年前
!5261 【pytorch】【contrib】【cv】 模型公网地址整改 * 【pytorch】【contrib】【cv】 模型公网地址整改 2 年前
README.md

ReID Strong Baseline

Get Started

  1. Install dependencies:

  2. Prepare dataset

    (1)Market1501

    • Download the training and validation set of Market1501
    • Run unzip Market-1501-v15.09.15.zip to unzip the dataset and rename to market1501. The data structure would like:
    data
        market1501 # this folder contains 6 files.
            bounding_box_test/
            bounding_box_train/
            ......
    

    and then you should set the path in all the file in ./test/*.sh about DATASETS.ROOT_DIR

  3. Prepare pretrained model if you don't have

    (1)ResNet

    • Download pretrained model resnet50-19c8e357.pth

    • mkdir $ReidStrongBaseline/.cache

    • and then you put it in the path to be ./.cache/*.pth

  4. Modify the function of apex package(If you use the apex package after 2021081000, you can ignore it ) add some code in ${PYTHONPATH}/python3.7/site-packages/apex/amp/scaler.py line:307

    if master_grads_combined is None:
        return
    

Train

  1. If run the model on the Linux system,you should run the code to convert the format:

    dos2unix test/*.sh
    
  2. Market1501, cross entropy loss + triplet loss

cd $ReidStrongBaseline

# training 1p accuracy
bash ./test/train_full_1p.sh --data_path=xxx 
#$data_path for real path to Market1501_datasets

# training 1p performance
bash ./test/train_performance_1p.sh --data_path=xxx 
#$data_path for real path to Market1501_datasets

# training 8p accuracy
bash ./test/train_full_8p.sh --data_path=xxx 
#$data_path for real path to Market1501_datasets

# training 8p performance
bash ./test/train_performance_8p.sh --data_path=xxx 
#$data_path for real path to Market1501_datasets
  1. show the prof_demo and inference .
sh demo.sh
sh prof_demo.sh

Test

You can test your model's performance directly by running these commands in .sh files after your custom modification.

# evaluation 1p accuracy
bash ./test/eval_1p.sh --data_path=xxx 
#$data_path for real path to Market1501_datasets

# evaluation 8p accuracy
bash ./test/eval_8p.sh --data_path=xxx 
#$data_path for real path to Market1501_datasets

公网地址说明

代码涉及公网地址参考 public_address_statement.md