Coder Social home page Coder Social logo

samthakur587 / yolov7 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 44.4 MB

This project aims to train the YOLOv7 object detection model on a custom dataset comprising diverse aquarium images containing fish and aquatic creatures.

Python 1.18% Shell 0.01% Jupyter Notebook 98.81% Dockerfile 0.01%
object-detection computer-vision custom-training mlops-environment roboflow-dataset wandb yolov7

yolov7's Introduction

YOLOv7 Object Detection on Aquarium Images

This project aims to train the YOLOv7 object detection model on a custom dataset comprising diverse aquarium images containing fish and aquatic creatures.

Dataset

  • Download Dataset: Aquarium Dataset on Roboflow
  • API Download:
    !pip install roboflow
    from roboflow import Roboflow
    
    rf = Roboflow(api_key="YOUR_API_KEY")
    project = rf.workspace("roboflow-100").project("aquarium-qlnqy")
    dataset = project.version(2).download("yolov7")

Training

  • Model Used: YOLOv7 with 100 epochs
  • Pretrained Weights: YOLOv7.pt
  • Training Command:
    !python train.py --workers 1 --device 0 --batch-size 16 --epochs 100 --img 640 640 --data /content/drive/MyDrive/aquarium_dataset/data.yaml --hyp data/hyp.scratch.custom.yaml --name yolov7-custom --weights yolov7.pt
    

Performance

YOLOv7 Models Comparison on MS COCO

Model Test Size APtest AP50test AP75test Batch 1 FPS Batch 32 Avg. Time
YOLOv7 640 51.4% 69.7% 55.9% 161 fps 2.8 ms
YOLOv7-X 640 53.1% 71.2% 57.8% 114 fps 4.3 ms
YOLOv7-W6 1280 54.9% 72.6% 60.1% 84 fps 7.6 ms
YOLOv7-E6 1280 56.0% 73.5% 61.2% 56 fps 12.3 ms
YOLOv7-D6 1280 56.6% 74.0% 61.8% 44 fps 15.0 ms
YOLOv7-E6E 1280 56.8% 74.4% 62.1% 36 fps 18.7 ms

Detection Results

Usage

Detection Command

  • Detecting using Best Model:
    !python detect.py --weights /content/drive/MyDrive/yolov7/runs/train/yolov7-custom2/weights/best.pt --conf 0.2 --img-size 640 --source /content/drive/MyDrive/aquarium_dataset/test/images/
    

Contributors

yolov7's People

Contributors

samthakur587 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.