ViT-Adapter icon indicating copy to clipboard operation
ViT-Adapter copied to clipboard

dist_test.sh: 8: dist_test.sh: Bad substitution

Open leetesua opened this issue 3 years ago • 1 comments

here is my command: (vit_adapter) lidexuan@aa-SYS-4029GP-TRT:/data/lidexuan/ViT-Adapter/detection$ sh dist_test.sh configs/htc++/htc++_beit_adapter_large_fpn_3x_coco.py htc++_beit_adapter_large_fpn_3x_coco.pth.tar 8 --eval bbox segm dist_test.sh: 8: dist_test.sh: Bad substitution

any idea?

leetesua avatar Sep 16 '22 09:09 leetesua

here is my command: (vit_adapter) lidexuan@aa-SYS-4029GP-TRT:/data/lidexuan/ViT-Adapter/detection$ sh dist_test.sh configs/htc++/htc++_beit_adapter_large_fpn_3x_coco.py htc++_beit_adapter_large_fpn_3x_coco.pth.tar 8 --eval bbox segm dist_test.sh: 8: dist_test.sh: Bad substitution

any idea?

Hi, the parameter '8' means to use 8 gpus in your program. Does your machine have 8 gpus? Or do you have more error information?

duanduanduanyuchen avatar Sep 17 '22 08:09 duanduanduanyuchen

here is my command: (vit_adapter) lidexuan@aa-SYS-4029GP-TRT:/data/lidexuan/ViT-Adapter/detection$ sh dist_test.sh configs/htc++/htc++_beit_adapter_large_fpn_3x_coco.py htc++_beit_adapter_large_fpn_3x_coco.pth.tar 8 --eval bbox segm dist_test.sh: 8: dist_test.sh: Bad substitution

any idea?

Hi, you can use bash instead of sh.

czczup avatar Oct 11 '22 06:10 czczup