{
  "id": 170102,
  "title": "/bin/sh: 1: ./darknet: Permission denied error",
  "url": "/competitions/global-wheat-detection/discussion/170102",
  "author_name": "Luis Vivas",
  "post_date": "2020-07-26T12:47:25.552000",
  "votes": 1,
  "comment_count": 13,
  "views": 0,
  "content": "<p>Hello.</p>\n\n<p>I am trying to use the Darknet with my model already trained. In Colab everything works fine. When I use it in Kaggle, it gives me this error. </p>\n\n<p><code>/bin/sh: 1: ./darknet: Permission denied</code></p>\n\n<p>Has anyone encounter it?</p>\n\n<p>I tried this ```\nchmod +x linux_mark.sh</p>\n\n<p>```\nbut it does not work.</p>",
  "messages": [
    {
      "id": 946831,
      "postDate": "2020-07-26T21:53:46.793Z",
      "content": "<p>Try with sudo permission</p>",
      "rawMarkdown": "Try with sudo permission",
      "votes": 1,
      "replies": [
        {
          "id": 946835,
          "postDate": "2020-07-26T21:58:31.503Z",
          "content": "<p>I also tried it and did not work.</p>",
          "rawMarkdown": "I also tried it and did not work."
        },
        {
          "id": 946843,
          "postDate": "2020-07-26T22:26:27.207Z",
          "content": "<p><code>\nchmod +x linux_mark.sh\n./linux_mark.sh\n</code>\nDid you try like that?</p>",
          "rawMarkdown": "```\nchmod +x linux_mark.sh\n./linux_mark.sh\n```\nDid you try like that?",
          "votes": 1
        },
        {
          "id": 946878,
          "postDate": "2020-07-26T23:16:18.793Z",
          "content": "<p>Yes, I did, it changes the permission but the error is still there.</p>",
          "rawMarkdown": "Yes, I did, it changes the permission but the error is still there.\n\n"
        }
      ]
    },
    {
      "id": 946233,
      "postDate": "2020-07-26T13:00:32.050Z",
      "content": "<p>Try like this-\n<code>import subprocess</code>\n<code>cmd = \"./darknet detector test ......\"</code>\n<code>b = subprocess.getoutput(cmd)</code></p>",
      "rawMarkdown": "Try like this-\n`import subprocess`\n`cmd = \"./darknet detector test ......\"`\n`b = subprocess.getoutput(cmd)`",
      "votes": 2,
      "replies": [
        {
          "id": 946345,
          "postDate": "2020-07-26T14:17:21.940Z",
          "content": "<p>Hello Prateek I juist tried it and it continues giving me the same error. I don't use ./darknet since I am already inside. But as you can see I cannot execute it. And it is strange it looks like we are the only 2 people in this platform having this issue.</p>",
          "rawMarkdown": "Hello Prateek I juist tried it and it continues giving me the same error. I don't use ./darknet since I am already inside. But as you can see I cannot execute it. And it is strange it looks like we are the only 2 people in this platform having this issue."
        },
        {
          "id": 946392,
          "postDate": "2020-07-26T14:52:27.640Z",
          "content": "<p>Since you are using YOLOv3, you can use OpenCV. So for now use OpenCV with your model. Take the reference from below notebook-\n<a href=\"https://www.kaggle.com/ravi02516/visualize-yolov3-darknet-results-on-test-data?scriptVersionId=37840624\">https://www.kaggle.com/ravi02516/visualize-yolov3-darknet-results-on-test-data?scriptVersionId=37840624</a></p>",
          "rawMarkdown": "Since you are using YOLOv3, you can use OpenCV. So for now use OpenCV with your model. Take the reference from below notebook-\n[https://www.kaggle.com/ravi02516/visualize-yolov3-darknet-results-on-test-data?scriptVersionId=37840624](https://www.kaggle.com/ravi02516/visualize-yolov3-darknet-results-on-test-data?scriptVersionId=37840624)",
          "votes": 2
        },
        {
          "id": 946879,
          "postDate": "2020-07-26T23:17:52.733Z",
          "content": "<p>Thanks, With this it is al least creating a submission file with my weight. But I still wonder why ./darknet gives me an error</p>",
          "rawMarkdown": "Thanks, With this it is al least creating a submission file with my weight. But I still wonder why ./darknet gives me an error",
          "votes": 1
        },
        {
          "id": 947058,
          "postDate": "2020-07-27T03:54:14.837Z",
          "content": "<p>Yes, that was the exact problem I faced earlier and couldn't able to run the command so I converted my model into keras for proceeding further. By the way with YOLOv3 you will not get better score and for learning purpose also I recommend you to use YOLOv4.</p>",
          "rawMarkdown": "Yes, that was the exact problem I faced earlier and couldn't able to run the command so I converted my model into keras for proceeding further. By the way with YOLOv3 you will not get better score and for learning purpose also I recommend you to use YOLOv4.",
          "votes": 2
        },
        {
          "id": 953456,
          "postDate": "2020-07-31T19:53:27.797Z",
          "content": "<p><a href=\"/iamprateek\">@iamprateek</a> <a href=\"/doanquanvietnamca\">@doanquanvietnamca</a> Did you find a solution for yolov4? I have a pretty elaborate pseudolabelling notebook using darknet in colab, but I can't for the life of me get darknet to work in Kaggle, I'm quite frustrated. </p>",
          "rawMarkdown": "@iamprateek @doanquanvietnamca Did you find a solution for yolov4? I have a pretty elaborate pseudolabelling notebook using darknet in colab, but I can't for the life of me get darknet to work in Kaggle, I'm quite frustrated. ",
          "votes": 1
        },
        {
          "id": 953590,
          "postDate": "2020-07-31T22:42:41.367Z",
          "content": "<p>No, I could not make it work in Kaggle. What I did was to create the model in Colab and upload the model and submit the results. You can try the same.</p>",
          "rawMarkdown": "No, I could not make it work in Kaggle. What I did was to create the model in Colab and upload the model and submit the results. You can try the same.",
          "votes": 1
        },
        {
          "id": 953645,
          "postDate": "2020-08-01T00:26:40.777Z",
          "rawMarkdown": "",
          "isDeleted": true
        },
        {
          "id": 953752,
          "postDate": "2020-08-01T04:29:19.230Z",
          "content": "<p><a href=\"/stanleyjzheng\">@stanleyjzheng</a> I understand your point. For Pseudo Labeling training is required. I was also unable to train the data with Darknet in Kaggle due to permission error.  </p>",
          "rawMarkdown": "@stanleyjzheng I understand your point. For Pseudo Labeling training is required. I was also unable to train the data with Darknet in Kaggle due to permission error.  ",
          "votes": 2
        }
      ]
    },
    {
      "id": 946216,
      "postDate": "2020-07-26T12:47:25.553Z",
      "content": "<p>Hello.</p>\n\n<p>I am trying to use the Darknet with my model already trained. In Colab everything works fine. When I use it in Kaggle, it gives me this error. </p>\n\n<p><code>/bin/sh: 1: ./darknet: Permission denied</code></p>\n\n<p>Has anyone encounter it?</p>\n\n<p>I tried this ```\nchmod +x linux_mark.sh</p>\n\n<p>```\nbut it does not work.</p>",
      "rawMarkdown": "Hello.\n\nI am trying to use the Darknet with my model already trained. In Colab everything works fine. When I use it in Kaggle, it gives me this error. \n\n``/bin/sh: 1: ./darknet: Permission denied``\n\nHas anyone encounter it?\n\nI tried this ```\nchmod +x linux_mark.sh\n\n```\nbut it does not work.",
      "votes": 1
    }
  ],
  "comments": [
    {
      "id": 946831,
      "author_name": "Manh Lab",
      "author_url": "",
      "post_date": "2020-07-26T21:53:46.793000",
      "content": "<p>Try with sudo permission</p>",
      "votes": 1,
      "replies": [
        {
          "id": 946835,
          "author_name": "Luis Vivas",
          "author_url": "",
          "post_date": "2020-07-26T21:58:31.503000",
          "content": "<p>I also tried it and did not work.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 946843,
          "author_name": "Manh Lab",
          "author_url": "",
          "post_date": "2020-07-26T22:26:27.207000",
          "content": "<p><code>\nchmod +x linux_mark.sh\n./linux_mark.sh\n</code>\nDid you try like that?</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 946878,
          "author_name": "Luis Vivas",
          "author_url": "",
          "post_date": "2020-07-26T23:16:18.793000",
          "content": "<p>Yes, I did, it changes the permission but the error is still there.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 946233,
      "author_name": "Prateek Gupta",
      "author_url": "",
      "post_date": "2020-07-26T13:00:32.050000",
      "content": "<p>Try like this-\n<code>import subprocess</code>\n<code>cmd = \"./darknet detector test ......\"</code>\n<code>b = subprocess.getoutput(cmd)</code></p>",
      "votes": 2,
      "replies": [
        {
          "id": 946345,
          "author_name": "Luis Vivas",
          "author_url": "",
          "post_date": "2020-07-26T14:17:21.940000",
          "content": "<p>Hello Prateek I juist tried it and it continues giving me the same error. I don't use ./darknet since I am already inside. But as you can see I cannot execute it. And it is strange it looks like we are the only 2 people in this platform having this issue.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 946392,
          "author_name": "Prateek Gupta",
          "author_url": "",
          "post_date": "2020-07-26T14:52:27.640000",
          "content": "<p>Since you are using YOLOv3, you can use OpenCV. So for now use OpenCV with your model. Take the reference from below notebook-\n<a href=\"https://www.kaggle.com/ravi02516/visualize-yolov3-darknet-results-on-test-data?scriptVersionId=37840624\">https://www.kaggle.com/ravi02516/visualize-yolov3-darknet-results-on-test-data?scriptVersionId=37840624</a></p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 946879,
          "author_name": "Luis Vivas",
          "author_url": "",
          "post_date": "2020-07-26T23:17:52.733000",
          "content": "<p>Thanks, With this it is al least creating a submission file with my weight. But I still wonder why ./darknet gives me an error</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 947058,
          "author_name": "Prateek Gupta",
          "author_url": "",
          "post_date": "2020-07-27T03:54:14.837000",
          "content": "<p>Yes, that was the exact problem I faced earlier and couldn't able to run the command so I converted my model into keras for proceeding further. By the way with YOLOv3 you will not get better score and for learning purpose also I recommend you to use YOLOv4.</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 953456,
          "author_name": "Stanley Zheng",
          "author_url": "",
          "post_date": "2020-07-31T19:53:27.797000",
          "content": "<p><a href=\"/iamprateek\">@iamprateek</a> <a href=\"/doanquanvietnamca\">@doanquanvietnamca</a> Did you find a solution for yolov4? I have a pretty elaborate pseudolabelling notebook using darknet in colab, but I can't for the life of me get darknet to work in Kaggle, I'm quite frustrated. </p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 953590,
          "author_name": "Luis Vivas",
          "author_url": "",
          "post_date": "2020-07-31T22:42:41.367000",
          "content": "<p>No, I could not make it work in Kaggle. What I did was to create the model in Colab and upload the model and submit the results. You can try the same.</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 953645,
          "author_name": "",
          "author_url": "",
          "post_date": "2020-08-01T00:26:40.777000",
          "content": "",
          "votes": 0,
          "replies": []
        },
        {
          "id": 953752,
          "author_name": "Prateek Gupta",
          "author_url": "",
          "post_date": "2020-08-01T04:29:19.230000",
          "content": "<p><a href=\"/stanleyjzheng\">@stanleyjzheng</a> I understand your point. For Pseudo Labeling training is required. I was also unable to train the data with Darknet in Kaggle due to permission error.  </p>",
          "votes": 2,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "946831": "Try with sudo permission",
    "946233": "Try like this-\n`import subprocess`\n`cmd = \"./darknet detector test ......\"`\n`b = subprocess.getoutput(cmd)`",
    "946216": "Hello.\n\nI am trying to use the Darknet with my model already trained. In Colab everything works fine. When I use it in Kaggle, it gives me this error. \n\n``/bin/sh: 1: ./darknet: Permission denied``\n\nHas anyone encounter it?\n\nI tried this ```\nchmod +x linux_mark.sh\n\n```\nbut it does not work."
  }
}