README.md 1.55 KB
Newer Older
limm's avatar
limm committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# <div aligh="center"><strong>Detectron2</strong></div>
## 简介
Detectron2 是 Facebook AI Research 的下一代软件系统实现最先进的对象检测算法

### 使用pip方式安装
detectron2 whl包下载目录:[http://10.6.10.68:8000/customized/detectron2/dtk2310/](http://10.6.10.68:8000/customized/detectron2/dtk2310/). 目前只提供有python3.8版本的安装包
```shell
pip install detectron2* (下载的detectron2的whl包)
```
### 使用源码编译方式安装

#### 编译环境准备
- 安装相关依赖
```shell
pip install numpy
pip install 'urllib3==1.26.14'
pip insta;; wheel
```
- 在首页 | 光合开发者社区下载 det23.10 解压在 /opt/ 路径下,并建立软连接,例如:
```shell
cd /opt
wget http://10.6.10.68:8000/dtk-release/dtk23.10/CentOS7.6/DTK-23.10-CentOS7.6-x86_64.tar.gz
tar -zxvf DTK-23.10-CentOS7.6-x86_64.tar.gz
ln -s dtk-23.10 dtk
source /opt/dtk/env.sh
```
limm's avatar
limm committed
27

limm's avatar
limm committed
28
29
30
31
32
33
34
35
36
37
- 安装pytorch. pytorch whl包下载目录: [http://10.6.10.68:8000/debug/pytorch/dtk23.10/hipify](http://10.6.10.68:8000/debug/pytorch/dtk23.10/hipify). 根据需求下载对应的版本,安装如下:
```shell
pip install torch* (下载的torch的whl包)
```
#### 源码下载编译安装
```shell
git clone -b v0.1.3-release http://developer.hpccube.com/codes/aicomponent/detectron2.git
python pymap_script.py /path/to/detectron2
python -m pip install -e detectron2
```
limm's avatar
limm committed
38

limm's avatar
limm committed
39
40
41
42
43
## 单侧
```shell
cd detectron2
python -m unittest discover -v -s ./tests
```
limm's avatar
limm committed
44

limm's avatar
limm committed
45
46
47
48
## Known Issue
```

```
limm's avatar
limm committed
49

limm's avatar
limm committed
50
51
52
## 参考资料
```shell
https://github.com/facebookresearch/detectron2.git
limm's avatar
limm committed
53
```