fasdfsa commited on
Commit
9a0bb76
·
1 Parent(s): f1f31f0

update readme.txt

Browse files
Files changed (1) hide show
  1. readme.txt +65 -0
readme.txt CHANGED
@@ -1,5 +1,70 @@
1
  see doc\lang\programming\pytorch\文本检测\DBNET 论文代码都有
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  字符级标注
4
 
5
  测试
 
1
  see doc\lang\programming\pytorch\文本检测\DBNET 论文代码都有
2
 
3
+ see 深入理解神经网络:从逻辑回归到CNN.md -> autodl -> cuda 多版本共存
4
+
5
+ https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_10.1.105_418.39_linux.run
6
+ # 下载安装
7
+
8
+ 22.04 安装 cuda 10.1 需要降级 gcc
9
+
10
+ echo "deb http://archive.ubuntu.com/ubuntu focal main universe" | sudo tee /etc/apt/sources.list.d/focal.list \
11
+ && sudo apt update \
12
+ && sudo apt install gcc-7 g++-7 -y
13
+
14
+ # 设置默认GCC版本
15
+ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 2 \
16
+ && sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 1 \
17
+ && sudo update-alternatives --config gcc
18
+ # 选择gcc-7
19
+
20
+ ./cuda_10.1.105_418.39_linux.run
21
+ # 安装,不要选驱动
22
+
23
+ Please make sure that
24
+ - PATH includes /usr/local/cuda-10.1/bin
25
+ - LD_LIBRARY_PATH includes /usr/local/cuda-10.1/lib64, or, add /usr/local/cuda-10.1/lib64 to /etc/ld.so.conf and run ldconfig as root
26
+
27
+
28
+
29
+ update-alternatives --remove cuda /usr/local/cuda-11.8
30
+ update-alternatives --install /usr/local/cuda cuda /usr/local/cuda-10.1 101 &&
31
+ ln -sfT /usr/local/cuda-10.1 /etc/alternatives/cuda &&
32
+ ln -sfT /etc/alternatives/cuda /usr/local/cuda
33
+ # 切换版本
34
+
35
+ vi ~/.bashrc
36
+
37
+ if [ -z $LD_LIBRARY_PATH ]; then
38
+ LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64
39
+ else
40
+ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-10.1/lib64
41
+ fi
42
+ export LD_LIBRARY_PATH
43
+
44
+ export PATH=/usr/local/cuda/bin:$PATH
45
+
46
+
47
+ source ~/.bashrc
48
+
49
+ nvcc --version
50
+
51
+
52
+
53
+
54
+ conda install pytorch==1.2.0 -c pytorch
55
+ # 官方文档是这个版本
56
+ # 但是现在下载不了了
57
+
58
+
59
+ https://download.pytorch.org/whl/torch_stable.html
60
+ # 这里看有什么可以装
61
+
62
+ pip install https://download.pytorch.org/whl/cu101/torch-1.4.0-cp38-cp38-linux_x86_64.whl
63
+ # 这样装 1.4.0+cu101
64
+
65
+
66
+
67
+
68
  字符级标注
69
 
70
  测试