Search code examples
pythonlinuxobject-detectionroboflow

/bin/bash: ./darknet: Permission denied


I've created an object detection model using Roboflow's tutorial and have all the saved weights. The one problem I have is deploying it in a Google Colaboratory. I've changed up some code, but it does not seem to work. So in short, model's trained.

How do I use the model in another Google Colaboratory? I've downloaded the whole darknet folder to the environment with a direct download, some plotting functions and then ran:

and then

!./darknet detect cfg/custom-yolov4-detector.cfg backup/custom-yolov4-detector_last.weights {img} #-dont-show

Only to get:

/bin/bash: ./darknet: Permission denied

Any suggestions?


Solution

  • Just add this before your command: !chmod +x ./darknet