19 lines
1.3 KiB
Plaintext
19 lines
1.3 KiB
Plaintext
# 接下来我们开始运行开源的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这个是还原
|