README.md 1.34 KB
Newer Older
zhanggezhong's avatar
zhanggezhong committed
1
# <div align="center"><strong>Mask-RCNN</strong></div>
zhanggezhong's avatar
zhanggezhong committed
2

zhanggezhong's avatar
zhanggezhong committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
## 简介

Mask R-CNN 是在 Faster R-CNN 架构的基础上发展而来的,Faster R-CNN 是一种经典的两阶段目标检测算法,主要由骨干网络(Backbone)、区域建议网络(Region Proposal Network, RPN)和检测头(Detection Head)三部分组成。Mask R-CNN 在 Faster R-CNN 的基础上添加了一个用于生成目标掩码(mask)的分支,形成了一个多任务学习框架。

## 安装

### 适用环境

- ubuntu20.04 或 rocky8.6

- Python==3.10

- PyTorch==2.4.1 DTK=25.04

### 使用pip方式安装
```shell
pip install maskrcnn* 
```

### 源码编译安装

#### 编译环境准备

- 拉取maskrcnn代码

```shell
git clone -b maskrcnn-hcu https://developer.sourcefind.cn/codes/OpenDAS/maskrcnn.git
```

- 导入环境变量以及安装必要依赖库
安装fastpt-2.1.0-torch2.4.1版本

```shell
source /usr/local/bin/fastpt_cuda_init --compile
```
使用audio时执行

```shell
source /usr/local/bin/fastpt_cuda_init --execute
```

#### 编译安装

- 执行编译命令并安装

```shell
cd NVIDIA/benchmarks/maskrcnn/implementations/pytorch/maskrcnn
python3  setup.py  bdist_wheel
pip install dist/maskrcnn*
```

## Known Issue

-

## 其他参考

- [README_ORIGIN](README_ORIGIN.md)

- [GitHub](https://github.com/mlcommons/training_results_v3.1)