Giter Site home page Giter Site logo

painting-classification's Introduction

painting-classification

The notebook demonstrates how to use the YOLOv5 model for painting classification, focusing on the setup, dataset preparation, and model training.

Dataset:

The notebook uses a custom dataset likely fetched from Roboflow, as indicated by the code. Detailed information about the dataset source (wikiart-v4) is utilized.

Model:

The model employed is YOLOv5, a popular model for object detection tasks, adapted here for classifying paintings.

Requirements:

  • Python 3.x
  • PyTorch
  • Requirements listed in requirements.txt of the YOLOv5 repository

Setup Instructions:

  1. Clone the YOLOv5 repository and install dependencies:

    git clone https://github.com/ultralytics/yolov5
    cd yolov5
    pip install -qr requirements.txt
  2. Ensure the directory structure is correct for downloading the dataset:

    mkdir -p ../datasets
    cd ../datasets
  3. Run the training script from the YOLOv5 directory:

    cd ../yolov5
    python classify/train.py --model yolov5s-cls.pt --data $DATASET_NAME --epochs 100 --img 128 --pretrained weights/yolov5s-cls.pt

How to Run:

Open the notebook in a Jupyter environment and execute the cells sequentially, following the instructions within each cell.

painting-classification's People

Contributors

valerie-fan 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.