Giter Club home page Giter Club logo

Comments (7)

SkalskiP avatar SkalskiP commented on July 22, 2024 18

Hi, @cnjhh and @WongKinYiu. I spent some time assembling this notebook. It shows how to:

  • Run inference with a pre-trained model
  • Fine-tune models on custom dataset
  • Evaluate fine-tuned model
  • Run inference with fine-tuned model

@WongKinYiu I'd love to add this link to README.md, but I understand if you prefare not to. :)

from yolov9.

SkalskiP avatar SkalskiP commented on July 22, 2024 4

@WongKinYiu Thank you! ๐Ÿ™๐Ÿป I'm super honored. Maybe we could include a badge at the top of the README?

Colab

from yolov9.

WongKinYiu avatar WongKinYiu commented on July 22, 2024 3

Done.

from yolov9.

WongKinYiu avatar WongKinYiu commented on July 22, 2024 1

Make sure your dataset has same format as provided format for coco dataset.
Modify the coco.yaml and yolov9.yaml to fit your dataset.
Then you can train your custom data.

from yolov9.

berengueradrian avatar berengueradrian commented on July 22, 2024

Hi @WongKinYiu @SkalskiP, is there any way to perform fine-tuning on the model using a custom dataset with different structure than the one used in the Colab(YOLO structure)?

I want to use it for a dataset with a different structure and I would like to know if you have some hints on how to carry this out. I have a lot of data and it is not efficient for me to transform that bunch of data into the YOLO structure, I would like to have a 'general' approach in order to be able to train it with different dataset structures. My structure is in this case is:

โ”œโ”€โ”€ src
โ”‚   โ”œโ”€โ”€ images
โ”‚   โ”‚   โ”œโ”€โ”€ <class_directory>/<image>.jpg
โ”‚   โ”œโ”€โ”€ bounding_boxes.txt
โ”‚   โ”œโ”€โ”€ classes.txt
โ”‚   โ”œโ”€โ”€ image_class_labels.txt
โ”‚   โ”œโ”€โ”€ images.txt
โ”‚   โ”œโ”€โ”€ train_test_splits.txt

Thanks in advance.

from yolov9.

rmukh avatar rmukh commented on July 22, 2024

@berengueradrian I guess it is not possible to create a 'general approach' that supports all possible user's dataset structures. That's why we have different data formats (COCO, YOLO, etc). The code can be refactored to expect the user's dataloader, but it would take some time to properly refactor. So, I guess you can use your own custom dataloader and insert it here

yolov9/train.py

Line 177 in 380284c

train_loader, dataset = create_dataloader(train_path,

Just make sure your dataloader outputs the data in the expected format.ย 

from yolov9.

berengueradrian avatar berengueradrian commented on July 22, 2024

All right, thanks for the info!

from yolov9.

Related Issues (20)

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.