You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and got /bin/bash: ./tools/dist_test.sh: /usr/bin/env: bad interpreter: Permission denied
Is there a tutorial to run this on colab ?
I also tried following mmdetection's colab notebook tutorial and tried this from mmdet.apis import inference_detector, init_detector, show_result_pyplot config = '/content/drive/MyDrive/KGDet/KGDet/configs/kgdet_moment_r50_fpn_1x-demo.py' checkpoint = '/content/drive/MyDrive/KGDet/KGDet/checkpoints/KGDet_epoch-12.pth' model = init_detector(config, checkpoint, device='cuda:0')
but ended up getting KeyError: 'RepPointsDetectorKp is not in the models registry'
The text was updated successfully, but these errors were encountered:
Sorry, we have only tested the repo in the native Linux shell, and Colab is not supported officially.
According to this line, the program should accept --json_out as an argument. Maybe you can print the received arguments args to debug.
So I am trying to run this notebook on colab and I tried to run the line for demo on test images
# single-gpu testing !python tools/test.py /content/drive/MyDrive/KGDet/KGDet/configs/kgdet_moment_r50_fpn_1x-demo.py /content/drive/MyDrive/KGDet/KGDet/checkpoints/KGDet_epoch-12.pth --json_out work_dirs/demo_KGDet.json --eval bbox keypoints
and got the error
test.py: error: unrecognized arguments: --json_out work_dirs/demo_KGDet.json
If I remove json from json_out then it raises a pkl file error
! ./tools/dist_test.sh /content/drive/MyDrive/KGDet/KGDet/configs/kgdet_moment_r50_fpn_1x-demo.py /content/drive/MyDrive/KGDet/KGDet/checkpoints/KGDet_epoch-12.pth 1 --json_out work_dirs/demo_KGDet.json --eval bbox keypoints
and got
/bin/bash: ./tools/dist_test.sh: /usr/bin/env: bad interpreter: Permission denied
Is there a tutorial to run this on colab ?
I also tried following mmdetection's colab notebook tutorial and tried this
from mmdet.apis import inference_detector, init_detector, show_result_pyplot config = '/content/drive/MyDrive/KGDet/KGDet/configs/kgdet_moment_r50_fpn_1x-demo.py' checkpoint = '/content/drive/MyDrive/KGDet/KGDet/checkpoints/KGDet_epoch-12.pth' model = init_detector(config, checkpoint, device='cuda:0')
but ended up getting KeyError: 'RepPointsDetectorKp is not in the models registry'
The text was updated successfully, but these errors were encountered: