# history

source:
  get_ipython().system('git clone https://github.com/ultralytics/yolov5  # clone')
  get_ipython().run_line_magic('cd', 'yolov5')
  get_ipython().run_line_magic('pip', 'install -qr requirements.txt comet_ml  # install')

source_raw:
  !git clone https://github.com/ultralytics/yolov5  # clone
  %cd yolov5
  %pip install -qr requirements.txt comet_ml  # install


source:
  import pandas as pd
  import numpy as np
  import cv2
  import os
  import torch
  import utils
  display = utils.notebook_init()  # checks

source_raw:
  import pandas as pd
  import numpy as np
  import cv2
  import os
  import torch
  import utils
  display = utils.notebook_init()  # checks


source:
  from roboflow import Roboflow
  rf = Roboflow(api_key="1k8Img1PtQsDD9xEaTJi")
  project = rf.workspace("detection-3bhfw").project("palm_detection-tbcor")
  dataset = project.version(4).download("yolov5")

source_raw:
  from roboflow import Roboflow
  rf = Roboflow(api_key="1k8Img1PtQsDD9xEaTJi")
  project = rf.workspace("detection-3bhfw").project("palm_detection-tbcor")
  dataset = project.version(4).download("yolov5")


source:
  get_ipython().system('python /content/yolov5/detect.py --weights /content/yolov5/runs/train/exp/weights/best.pt --img 640 --conf 0.25 --source /content/palm_dataset/Palm_Detection-4/test/images/4_jpg.rf.065ee7d644d10357352b442572e5b410.jpg')

source_raw:
  !python /content/yolov5/detect.py --weights /content/yolov5/runs/train/exp/weights/best.pt --img 640 --conf 0.25 --source /content/palm_dataset/Palm_Detection-4/test/images/4_jpg.rf.065ee7d644d10357352b442572e5b410.jpg


