Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
FastSAM_pytorch
Commits
8b808377
"router/vscode:/vscode.git/clone" did not exist on "ab5fd8cf93393db8a7fbbff9f8c23afeff18f3fc"
Commit
8b808377
authored
Feb 04, 2024
by
dengjb
Browse files
Update README.md
parent
e1f74834
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
README.md
README.md
+8
-8
No files found.
README.md
View file @
8b808377
# FastSAM_pytorch
_
# FastSAM_
pytorch
## 论文
...
...
@@ -22,7 +22,7 @@
```
docker pull image.sourcefind.cn:5000/dcu/admin/base/pytorch:1.13.1-centos7.6-dtk23.10-py38
# <your IMAGE ID>为以上拉取的docker的镜像ID替换
docker run -it -v /path/your_code_data/:/path/your_code_data/ --shm-size=32G --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video --name docker_name imageID bash
docker run -it -v /path/your_code_data/:/path/your_code_data/
-v /opt/hyhal:/opt/hyhal
--shm-size=32G --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video --name docker_name imageID bash
cd /path/workspace/
pip3 install -r requirements.txt
pip3 install git+https://github.com/openai/CLIP.git
...
...
@@ -34,7 +34,7 @@ pip3 install git+https://github.com/openai/CLIP.git
cd ./docker
docker build --no-cache -t crnn_pytorch:last .
# <your IMAGE ID>为以上拉取的docker的镜像ID替换
docker run -it -v /path/your_code_data/:/path/your_code_data/ --shm-size=32G --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video --name docker_name imageID bash
docker run -it -v /path/your_code_data/:/path/your_code_data/
-v /opt/hyhal:/opt/hyhal
--shm-size=32G --privileged=true --device=/dev/kfd --device=/dev/dri/ --group-add video --name docker_name imageID bash
```
### Anaconda (方法三)
...
...
@@ -42,10 +42,10 @@ docker run -it -v /path/your_code_data/:/path/your_code_data/ --shm-size=32G --p
1、关于本项目DCU显卡所需的特殊深度学习库可从光合开发者社区下载安装: https://developer.hpccube.com/tool/
```
DTK软件栈:dtk2
2
.10
DTK软件栈:dtk2
3
.10
python:python3.8
pytorch:1.1
0.0
torchvision:0.1
0
.0
pytorch:1.1
3.1
torchvision:0.1
4
.0
```
Tips:以上dtk软件栈、python、pytorch等DCU相关工具版本需要严格一一对应
...
...
@@ -75,7 +75,7 @@ pip3 install git+https://github.com/openai/CLIP.git
#### 单卡推理
[
权重下载地址
](
https://pan.baidu.com/s/18KzBmOTENjByoWWR17zdiQ?pwd=0000
)
```
HIP_VISIBLE_DEVICES=1 python Inference.py --model_path ./weights/FastSAM
-x
.pt --img_path ./images/dogs.jpg
HIP_VISIBLE_DEVICES=1 python Inference.py --model_path ./weights/FastSAM
_X
.pt --img_path ./images/dogs.jpg
```
## result
此处以Fast-SAM-x模型进行推理测试
<br>
...
...
@@ -107,4 +107,4 @@ https://developer.hpccube.com/codes/modelzoo/fastsam_pytorch
## 参考资料
[
GitHub - Fast-SAM
](
https://github.com/CASIA-IVA-Lab/FastSAM?tab=readme-ov-file
)
[
GitHub - Fast-SAM
](
https://github.com/CASIA-IVA-Lab/FastSAM?tab=readme-ov-file
)
_
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment