GithubHelp home page GithubHelp logo

ivangrov / yolov3-googlecolab Goto Github PK

View Code? Open in Web Editor NEW
78.0 78.0 41.0 2.39 MB

A walk through the code behind setting up YOLOv3 with darknet and training it and processing video on Google Colaboratory

Jupyter Notebook 100.00%

yolov3-googlecolab's Introduction

Hey there, I'm Ivan Goncharov ๐Ÿ‘‹

About me

  • ๐Ÿ”ญ Iโ€™m currently helping build the best tools for machine learning practitioners at Weights & Biases.
  • ๐ŸŽฅ As well as creating educational videos about ML on my YouTube channel.
  • ๐ŸŒฑ Iโ€™m currently learning more about domains of computer vision, NLP and MLOps.
  • ๐Ÿ‘ฏ Iโ€™m happy to collaborate on any exciting ML projects.
  • ๐Ÿ“ซ How to reach me: You can reach me on my Twitter and my LinkedIn. You can email me at [email protected] / [email protected].
  • โšก Fun fact: I'm really into music and enjoy spending my time jamming on the guitar.

Github Stats

Coverage Last Update

yolov3-googlecolab's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

yolov3-googlecolab's Issues

Unable to open file (file signature not found )

`---------------------------------------------------------------------------
OSError Traceback (most recent call last)
in ()
----> 1 yolo_model = load_model("drive/My Drive/car_yolo/car_detection/model_data/yolo.h5")

3 frames
/usr/local/lib/python3.6/dist-packages/h5py/_hl/files.py in make_fid(name, mode, userblock_size, fapl, fcpl, swmr)
171 if swmr and swmr_support:
172 flags |= h5f.ACC_SWMR_READ
--> 173 fid = h5f.open(name, flags, fapl=fapl)
174 elif mode == 'r+':
175 fid = h5f.open(name, h5f.ACC_RDWR, fapl=fapl)

h5py/_objects.pyx in h5py._objects.with_phil.wrapper()

h5py/_objects.pyx in h5py._objects.with_phil.wrapper()

h5py/h5f.pyx in h5py.h5f.open()

OSError: Unable to open file (file signature not found)`

Can't detect Custom Objects

Hello!
I am trying to detect my custom objects but my YOLO network traning process takes a lot of time. I am doing it with Google Colab and it loses its connection before the convergence of the loss function (after 6000 iterations) so it can 't detect any object...

Do you know how can I solve that problem?

Also I have a doubt that maybe that's the reason of my problem: When I upload the training images with their corresponding bounding box I don't use entire images, I just upload images of the object I want to detect (with their bounding box):

i.e.

captura

instead of:

30

Could it be the reason of my problem?

Thank you so much

Transfer learning

Hello! Is it possible to fit the network on my own class of objects or is it necessary to train from scratch here?

Couldnot convert string to float in the anchor file @Object Detection

class_names = read_classes("coco_classes.txt") anchors = read_anchors("yolo_anchors.txt") image_shape = (720., 1280.)

Got error like this:

ValueError Traceback (most recent call last)
in ()
1 class_names = read_classes("coco_classes.txt")
----> 2 anchors = read_anchors("yolo_anchors.txt")
3 image_shape = (720., 1280.)
`/content/yolo_utils.py in (.0)

 17     with open(anchors_path) as f:
 18         anchors = f.readlines()

---> 19 anchors = np.loadtxt(anchors_path, delimiter=",")
20 anchors = [float(x) for x in anchors.split(",")]
21 anchors = np.array(anchors).reshape(-1, 2)

ValueError: could not convert string to float: '/home/jovyan/work_sro/week3/Car_`

Can't train YOLO in GoogleColab

Hi Ivan!
I'm new in Google Colab and I'm having some problems to train my YOLO network with my custom data.

I am executing:
!./darknet detector train data/obj.data yolov3-tiny-obj.cfg yolov3-tiny.conv.15 -dont_show
inside x64 folder and I figure the following error:

screenshot_error

Please, can you help me?

Thank you so much and congrats for all your work :)

Software installation on Google Colab

Heey, thank you for your detailed help. I want to ask you, if I install these packages on Google Drive you know for training a dataset, do they go away after 15 hours as well ?

bbox coordinates and yaml

Hi Ivan,
In the Bbox label tool you use, the bbox text file contains for e.g.
0 0.48 0.37 0.009 0.027

0 is the class, what are the other values? How does it relate to a yaml (xmin, ymin, xmax, ymax) like like:

      <xmin>853.1795089352</xmin>
      <ymin>289.0164594851</ymin>
      <xmax>860.6634561323</xmax>
      <ymax>305.5028603386</ymax>

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.