文件最后提交记录最后更新时间
!1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 !1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 3 年前
!1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 !1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 3 年前
!1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 !1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 3 年前
!4671 【fix】批量修改模型python版本,兼容环境上的python3.8版本 * fix python version 3 年前
!1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 !1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 3 年前
文档整改,gitee->gitcode Co-authored-by: Lighters_c<zyh13227@163.com> # message auto-generated for no-merge-commit merge: !7469 merge ffffix into master 文档整改,gitee->gitcode Created-by: addsubmuldiv Commit-by: Lighters_c 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!74695 个月前
!1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 !1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 3 年前
文档整改,gitee->gitcode Co-authored-by: Lighters_c<zyh13227@163.com> # message auto-generated for no-merge-commit merge: !7469 merge ffffix into master 文档整改,gitee->gitcode Created-by: addsubmuldiv Commit-by: Lighters_c 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!74695 个月前
!1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 !1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 3 年前
!1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 !1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 3 年前
!1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 !1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 3 年前
!1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 !1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 3 年前
!1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 !1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 3 年前
!7376 optimize public_address_statement.md Merge pull request !7376 from 王凯宇/master 8 个月前
!1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 !1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 3 年前
!1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 !1411 【南京理工大学】【高校贡献】【ConvNext】-初次提交 3 年前
!4655 [fix] 修改模型PT2.0版本上导入inf报错问题 * fix inf get 3 年前
README.md

ConvNext_for_PyTorch

This implements training ConvNext of on the ImageNet dataset, mainly modified from https://github.com/facebookresearch/ConvNeXt.git

ConvNext_for_PyTorch Detail

As of the current date, Ascend-Pytorch is still inefficient for contiguous operations.

Requirements

  • pip install -r requirements.txt
  • pip install torch==1.8.1+ascend.rc2.20220505;torchvision==0.9.1;torch-npu 1.8.1rc2.post20220505;
  • Download the ImageNet dataset from http://www.image-net.org/

timm

将timm_need目录下的文件替换到timm的安装目录下


cd ../ConvNeXt
/bin/cp -f timm_need/mixup.py ../timm/data/mixup.py
/bin/cp -f timm_need/model_ema.py ../timm/utils/model_ema.py

软件包

该模型为不随版本演进模型(随版本演进模型范围可在此处查看),未在最新昇腾配套软件中适配验证,您可以:

  1. 根据下面提供PyTorch版本在软件版本配套表中选择匹配的CANN等软件下载使用。
  2. 查看软件版本配套表后确认对该模型有新版本PyTorch和CANN中的适配需求,请在modelzoo/issues中提出您的需求。自行适配不保证精度和性能达标。

当前模型支持的历史版本软件如下所示。

  • 910版本
  • CANN toolkit_5.1.RC1
  • torch 1.8.1+ascend.rc2.20220505
  • 固件驱动 22.0.0

Training

To train a model, run main.py with the desired model architecture and the path to the ImageNet dataset:

# training 1p accuracy
bash ./test/train_full_1p.sh --data_path=real_data_path

# training 1p performance
bash ./test/train_performance_1p.sh --data_path=real_data_path

# training 8p accuracy
bash ./test/train_full_8p.sh --data_path=real_data_path

# training 8p performance
bash ./test/train_performance_8p.sh --data_path=real_data_path

#  eval 
bash test/train_eval_8p.sh --data_path=real_data_path

# finetuning
bash test/train_finetune_1p.sh --data_path=real_data_path


ConvNext_for_PyTorch training result

Acc@1 FPS Npu_nums Epochs AMP_Type
- 115.10 1 300 O1
82.049 259.85 8 300 O1

公网地址说明

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