Code Monkey home page Code Monkey logo

test2's Introduction

test2

  1. Labels. Image labeling we use a tool called labelimg: https://github.com/tzutalin/labelImg and create a new .yaml:
train: ../yolo_A/images/
val: ../yolo_A/images/
nc: 1
names: ['ROI']
  1. Divided into two folders and one file: images, labels, A.yaml and compressed into one zip file yolo_A.zip. Enter colab and enter the yolov5 environment:
!git clone https://github.com/ultralytics/yolov5  # clone
%cd yolov5
%pip install -qr requirements.txt  # install
import torch
import utils
display = utils.notebook_init()  # checks
  1. Uncompress yolo_A.zip
!pip install pyunpack
!pip install patool
from pyunpack import Archive
Archive('/content/yolo_A.zip').extractall('/content/yolo_A')
  1. Train
!python train.py --img 640 --batch 8 --epochs 100 --data ../yolo_A/A.yaml --weights yolov5n.pt --nosave --cache
  1. Test
!python detect.py --weights /content/yolov5/runs/train/exp2/weights/last.pt --img 640 --conf 0.25 --source /content/yolo_A/images

test2's People

Contributors

666tugege avatar

Watchers

 avatar

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.