SAM/命令.txt

19 lines
1.3 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 接下来我们开始运行开源的demo,有两种方式:
# cmd命令注意notebooks/images/是指你的输入图片路径output是指的输出mask的路径后面的--device cpu如果加了就会采用cpu跑不然会默认GPU。
# python scripts/amg.py --checkpoint sam_vit_b_01ec64.pth --model-type vit_b --input data/img/ --output data/mask --device cuda:0
# python scripts/amg.py --checkpoint sam_vit_b_01ec64.pth --model-type vit_b --input data/img/ --output data/mask --device cpu
# python scripts/export_onnx_model.py --checkpoint <path/to/checkpoint> --model-type <model_type> --output <path/to/output>
# python scripts/amg.py --checkpoint sam_vit_b_01ec64.pth --model-type vit_b --input data/img/ --output data/mask --device cuda:0
# python scripts/export_onnx_model.py --checkpoint <path/to/checkpoint> --model-type <model_type> --output <path/to/output>
# D:\anaconda3\envs\pytorch\Scripts\pyuic5.exe -x untitled.ui -o display1.py
# D:\anaconda3\envs\pytorch\Scripts\pyuic5.exe -x untitled.ui -o display1.py
# 我现在设置的滑块范围是0-10 起始位置是0步长是1每一个步长缩放比例是20%
# 往右拖动滑块1、2、3、4、5、6、7、8、9、10 这是缩小
# 往回拖动滑块10、9、8、7、6、5、4、3、2、1、0这个是还原