文件最后提交记录最后更新时间
!1378 [众智][PyTorch]Ultra-Fast-Lane-Detection模型训练脚本整改修复报错问题 Merge pull request !1378 from 白浪/master 3 年前
init 4 年前
init 4 年前
init 4 年前
init 4 年前
init 4 年前
!4671 【fix】批量修改模型python版本,兼容环境上的python3.8版本 * fix python version 3 年前
init 4 年前
init 4 年前
init 4 年前
init 4 年前
init 4 年前
!5816 Network address of models to be rectified: 23 Merge pull request !5816 from Yss/network_declaration_23 2 年前
init 4 年前
init 4 年前
init 4 年前
init 4 年前
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 个月前
!1378 [众智][PyTorch]Ultra-Fast-Lane-Detection模型训练脚本整改修复报错问题 Merge pull request !1378 from 白浪/master 3 年前
init 4 年前
init 4 年前
init 4 年前
!1224 [众智][PyTorch]pytorch模型torch版本判断由1.8.1改为1.8 * 众智pytorch模型torch版本判断由1.8.1改为1.8 3 年前
!1895 [众智][PyTorch]Ultra-Fast-Lane-Detection模型修改每个step训练时间的计算方式 !1895 [众智][PyTorch]Ultra-Fast-Lane-Detection模型修改每个step训练时间的计算方式 3 年前
README.md

Ultra-Fast-Lane-Detection

这是Ultra-Fast-Lane-Detection模型在ResNet18模型上的训练部分,修改来自于cfzd/Ultra-Fast-Lane-Detection

Requirements

  • 安装提供NPU支持的PyTorch和混合精度Apex模块
  • 安装必备的依赖包,命令:pip3.7 install -r requirements.txt 注:pillow建议安装较新版本, 与之对应的torchvision版本如果无法直接安装,可使用源码安装对应的版本,源码参考链接:https://github.com/pytorch/vision ,建议Pillow版本是9.1.0 torchvision版本是0.6.0

Training

训练模型需要使用所需的模型架构和 Tusimple 数据集的路径运行 train.py:

# 1p train perf
bash test/train_performance_1p.sh     --data_path=数据集路径

# 8p train perf
bash test/train_performance_8p.sh     --data_path=数据集路径

# 8p train full
bash test/train_full_8p.sh     --data_path=数据集路径

# 8p eval 
bash test/train_eval_8p.sh     --data_path=数据集路径

# finetuning
bash test/train_finetune_1p.sh     --data_path=数据集路径

注意:

  • 所有训练脚本内部开头都包含train.py和tusimple.py。
  • 具体路径需要使用者自己修改,同理测试脚本包含的test.py和tusimple.py也需要使用者根据具体情况修改路径
  • train_performance_1p.log # 1p下测试性能的结果日志
  • train_performance_8p.log # 8p下测试性能的结果日志
  • train_full_8p.log # 8p 下完整训练的性能和精度的结果日志
  • train_eval_8p.log # 8p 下验证精度的结果日志
  • train_finetune_1p.log # 1p下fine-tuning的结果日志

UFLD训练结果

Metric FPS Epochs AMP_Type Device
153 1 O1 1p Npu
94.98% 1669 100 O1 8p Npu
122 1 O1 1p Gpu
95.46% 832 100 O1 8p Gpu

Statement

For details about the public address of the code in this repository, you can get from the file public_address_statement.md