{
  "id": 170849,
  "title": "Is it possible to build OpenCV from github branch in Kaggle Kernel?",
  "url": "/competitions/global-wheat-detection/discussion/170849",
  "author_name": "",
  "post_date": "2020-07-29T09:58:46.362990300Z",
  "votes": 1,
  "comment_count": 3,
  "views": 0,
  "content": "<p>Hello! \nI am trying to find the best way to run pre-trained YOLOv4 to get predictions. I found some public kernels based on PyTorch, but:\n1) I am usually using Keras and TensorFlow, so PyTorch solutions are some kind of \"black box\" for me.\n2) Sometimes they use GitHub projects under GPT license and I try to stick on competition rules.</p>\n\n<p>I found that you can use YOLOv4 from OpenCV 3.4 branch: <a href=\"https://github.com/opencv/opencv/pull/17185\">https://github.com/opencv/opencv/pull/17185</a>\nIt's currently not in the master branch, so, if I understand it correctly, I can`t just use pip to install it.</p>\n\n<p>Is it possible to install this particular version into my Kaggle Kernel?</p>",
  "messages": [
    {
      "id": "950266",
      "postDate": "07/29/2020 09:58:46",
      "content": "<p>Hello! \nI am trying to find the best way to run pre-trained YOLOv4 to get predictions. I found some public kernels based on PyTorch, but:\n1) I am usually using Keras and TensorFlow, so PyTorch solutions are some kind of \"black box\" for me.\n2) Sometimes they use GitHub projects under GPT license and I try to stick on competition rules.</p>\n\n<p>I found that you can use YOLOv4 from OpenCV 3.4 branch: <a href=\"https://github.com/opencv/opencv/pull/17185\">https://github.com/opencv/opencv/pull/17185</a>\nIt's currently not in the master branch, so, if I understand it correctly, I can`t just use pip to install it.</p>\n\n<p>Is it possible to install this particular version into my Kaggle Kernel?</p>",
      "rawMarkdown": "Hello! \nI am trying to find the best way to run pre-trained YOLOv4 to get predictions. I found some public kernels based on PyTorch, but:\n1) I am usually using Keras and TensorFlow, so PyTorch solutions are some kind of \"black box\" for me.\n2) Sometimes they use GitHub projects under GPT license and I try to stick on competition rules.\n\nI found that you can use YOLOv4 from OpenCV 3.4 branch: https://github.com/opencv/opencv/pull/17185\nIt's currently not in the master branch, so, if I understand it correctly, I can`t just use pip to install it.\n\nIs it possible to install this particular version into my Kaggle Kernel?",
      "votes": null
    },
    {
      "id": "950525",
      "postDate": "07/29/2020 12:57:30",
      "content": "<p><a href=\"/gooogr\">@gooogr</a> OpenCV has released it's new version with support of Darknet's YOLOv4 and tiny YOLOv4. You can find it's details <a href=\"https://github.com/opencv/opencv/tree/4.4.0\">here.</a> Currently Kaggle uses OpenCV with it's Python wrapper (opencv-python) which is not updated with YOLOv4 support.</p>\n\n<p>If you want to use pre-trained  YOLOv4 weights for inference then you can follow below notebook-\n<a href=\"https://www.kaggle.com/pabloberhauser/yolov4-darknet-inference\">using Darknet command for inference</a></p>",
      "rawMarkdown": "gooogr OpenCV has released it's new version with support of Darknet's YOLOv4 and tiny YOLOv4. You can find it's details [here.](https://github.com/opencv/opencv/tree/4.4.0) Currently Kaggle uses OpenCV with it's Python wrapper (opencv-python) which is not updated with YOLOv4 support.\n\nIf you want to use pre-trained  YOLOv4 weights for inference then you can follow below notebook-\n[using Darknet command for inference](https://www.kaggle.com/pabloberhauser/yolov4-darknet-inference)",
      "votes": null
    },
    {
      "id": "950854",
      "postDate": "07/29/2020 17:13:03",
      "content": "<p>Thank you! I seem to be a little confused about the releases of the versions.\nYes, I also found that notebook and wrote my kernel with YOLO Darknet implementation. It's not such convenient as using OpenCV (3 lines of code and your model is ready ), but friendly than pablOberhauser's. \nIn case someone find this thread, <a href=\"https://www.kaggle.com/gooogr/gwd-predicts-with-yolov4-and-darknet\">here is the link</a></p>",
      "rawMarkdown": "Thank you! I seem to be a little confused about the releases of the versions.\nYes, I also found that notebook and wrote my kernel with YOLO Darknet implementation. It's not such convenient as using OpenCV (3 lines of code and your model is ready ), but friendly than pablOberhauser's. \nIn case someone find this thread, [here is the link](https://www.kaggle.com/gooogr/gwd-predicts-with-yolov4-and-darknet)",
      "votes": null
    },
    {
      "id": "951804",
      "postDate": "07/30/2020 12:27:23",
      "content": "<p><a href=\"/gooogr\">@gooogr</a> I am glad that you are finally able to proceed. So what is you score?</p>",
      "rawMarkdown": "gooogr I am glad that you are finally able to proceed. So what is you score?",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 950525,
      "author_name": "iamprateek",
      "author_url": "",
      "post_date": "07/29/2020 12:57:30",
      "content": "<p><a href=\"/gooogr\">@gooogr</a> OpenCV has released it's new version with support of Darknet's YOLOv4 and tiny YOLOv4. You can find it's details <a href=\"https://github.com/opencv/opencv/tree/4.4.0\">here.</a> Currently Kaggle uses OpenCV with it's Python wrapper (opencv-python) which is not updated with YOLOv4 support.</p>\n\n<p>If you want to use pre-trained  YOLOv4 weights for inference then you can follow below notebook-\n<a href=\"https://www.kaggle.com/pabloberhauser/yolov4-darknet-inference\">using Darknet command for inference</a></p>",
      "votes": null,
      "replies": [
        {
          "id": 950854,
          "author_name": "gooogr",
          "author_url": "",
          "post_date": "07/29/2020 17:13:03",
          "content": "<p>Thank you! I seem to be a little confused about the releases of the versions.\nYes, I also found that notebook and wrote my kernel with YOLO Darknet implementation. It's not such convenient as using OpenCV (3 lines of code and your model is ready ), but friendly than pablOberhauser's. \nIn case someone find this thread, <a href=\"https://www.kaggle.com/gooogr/gwd-predicts-with-yolov4-and-darknet\">here is the link</a></p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 951804,
          "author_name": "iamprateek",
          "author_url": "",
          "post_date": "07/30/2020 12:27:23",
          "content": "<p><a href=\"/gooogr\">@gooogr</a> I am glad that you are finally able to proceed. So what is you score?</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "950266": "Hello! \nI am trying to find the best way to run pre-trained YOLOv4 to get predictions. I found some public kernels based on PyTorch, but:\n1) I am usually using Keras and TensorFlow, so PyTorch solutions are some kind of \"black box\" for me.\n2) Sometimes they use GitHub projects under GPT license and I try to stick on competition rules.\n\nI found that you can use YOLOv4 from OpenCV 3.4 branch: https://github.com/opencv/opencv/pull/17185\nIt's currently not in the master branch, so, if I understand it correctly, I can`t just use pip to install it.\n\nIs it possible to install this particular version into my Kaggle Kernel?",
    "950525": "gooogr OpenCV has released it's new version with support of Darknet's YOLOv4 and tiny YOLOv4. You can find it's details [here.](https://github.com/opencv/opencv/tree/4.4.0) Currently Kaggle uses OpenCV with it's Python wrapper (opencv-python) which is not updated with YOLOv4 support.\n\nIf you want to use pre-trained  YOLOv4 weights for inference then you can follow below notebook-\n[using Darknet command for inference](https://www.kaggle.com/pabloberhauser/yolov4-darknet-inference)",
    "950854": "Thank you! I seem to be a little confused about the releases of the versions.\nYes, I also found that notebook and wrote my kernel with YOLO Darknet implementation. It's not such convenient as using OpenCV (3 lines of code and your model is ready ), but friendly than pablOberhauser's. \nIn case someone find this thread, [here is the link](https://www.kaggle.com/gooogr/gwd-predicts-with-yolov4-and-darknet)",
    "951804": "gooogr I am glad that you are finally able to proceed. So what is you score?"
  },
  "source": "meta"
}