---
title: Ultra_Fast_Lane_Detection-PyTorch-模型库-ModelZoo-昇腾社区
description: 生态贡献模型
keywords: Ultra,Fast,Lane,Detection,PyTorch,模型库,ModelZoo,昇腾社区
url: https://www.hiascend.com/software/modelzoo/models/detail/75425c0809324eebae63a0ac8ac49a6d
section: (其他)
---

# Ultra_Fast_Lane_Detection-PyTorch-模型库-ModelZoo-昇腾社区

URL: https://www.hiascend.com/software/modelzoo/models/detail/75425c0809324eebae63a0ac8ac49a6d
描述: 生态贡献模型
关键词: Ultra,Fast,Lane,Detection,PyTorch,模型库,ModelZoo,昇腾社区

ModelZoo主页

主页 [了解详情](https://www.hiascend.com/software/modelzoo)大模型 [了解详情](https://www.hiascend.com/software/modelzoo/big-models)模型库 [了解详情](https://www.hiascend.com/software/modelzoo/models)工具库 [了解详情](https://www.hiascend.com/software/modelzoo/tools)权重库 [了解详情](https://www.hiascend.com/software/modelzoo/datasets)ModelShow [了解详情](https://www.hiascend.com/software/modelzoo/modelshow)DeepSeek专区HOT [了解详情](https://www.hiascend.com/developer/deepseek)文档中心 [了解详情](https://www.hiascend.com/document/detail/zh/ModelZoo/Documentation/overview/overview_0001.html)论坛交流 [了解详情](https://www.hiascend.com/forum/forum-0140120119986591009-1.html)

主页 [了解详情](https://www.hiascend.com/software/modelzoo)大模型 [了解详情](https://www.hiascend.com/software/modelzoo/big-models)模型库 [了解详情](https://www.hiascend.com/software/modelzoo/models)工具库 [了解详情](https://www.hiascend.com/software/modelzoo/tools)权重库 [了解详情](https://www.hiascend.com/software/modelzoo/datasets)ModelShow [了解详情](https://www.hiascend.com/software/modelzoo/modelshow)DeepSeek专区HOT [了解详情](https://www.hiascend.com/developer/deepseek)文档中心 [了解详情](https://www.hiascend.com/document/detail/zh/ModelZoo/Documentation/overview/overview_0001.html)论坛交流 [了解详情](https://www.hiascend.com/forum/forum-0140120119986591009-1.html)

模型库 [了解详情](https://www.hiascend.com/software/modelzoo/models)

Ultra_Fast_Lane_Detection-PyTorch

## Ultra_Fast_Lane_Detection-PyTorch

视觉分割PyTorch训练105次浏览2025/12/29更新

5.0

查看模型源码

Ultra_Fast_Lane_Detection-PyTorch

查看模型源码

模型使用

版本信息

模型使用

版本信息

...

# Ultra-Fast-Lane-Detection

这是Ultra-Fast-Lane-Detection模型在ResNet18模型上的训练部分，修改来自于cfzd/Ultra-Fast-Lane-Detection [了解详情](https://github.com/cfzd/Ultra-Fast-Lane-Detection)

## Requirements

- 安装提供NPU支持的PyTorch和混合精度Apex模块
- 安装必备的依赖包，命令：`pip3.7 install -r requirements.txt`注：pillow建议安装较新版本， 与之对应的torchvision版本如果无法直接安装，可使用源码安装对应的版本，源码参考链接：https://github.com/pytorch/vision [了解详情](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 |

| 版本 | 更新时间 | 精度 | 处理器 | CANN版本 | 操作 |
| --- | --- | --- | --- | --- | ---|
| 5.0.RC1 | 2023/08/19 | Mixed | Ascend 910 | 6.3.RC1 | modelzoomodelzoo |

使用模型资源和服务前，请您仔细阅读并理解透彻《昇腾深度学习模型许可协议 3.0》 [了解详情](https://www.hiascend.com/legal/modelzoo_models_license)
