Giter VIP home page Giter VIP logo

Comments (4)

CodingMantras avatar CodingMantras commented on May 28, 2024 1

Hi, You just need to do two simple steps:

1: Place the model (Your custom model .pt file) inside the weights folder

2: Add the name of the weight pt file inside settings.py

# ML Model config
MODEL_DIR = ROOT / 'weights'
# DETECTION_MODEL = MODEL_DIR / 'yolov8n.pt' # Comment out this line and

# Place your custom model pt file name here
DETECTION_MODEL = MODEL_DIR / 'my_detection_model.pt'

from yolov8-streamlit-detection-tracking.

nguyenduylinhqbu avatar nguyenduylinhqbu commented on May 28, 2024

Dear sir @CodingMantras,
I followed your guide but I faced this error.
Please let me know how to fix it.
Thank you.


ERROR ❌️ weights/best_IWIS23.pt appears to be an Ultralytics YOLOv5 model originally trained with https://github.com/ultralytics/yolov5. This model is NOT forwards compatible with YOLOv8 at https://github.com/ultralytics/ultralytics. Recommend fixes are to train a new model using the latest 'ultralytics' package or to run a command with an official YOLOv8 model, i.e. 'yolo predict model=yolov8n.pt'

from yolov8-streamlit-detection-tracking.

CodingMantras avatar CodingMantras commented on May 28, 2024

This repo is created using the yolov8 code and it is obvious from the ERROR that, the yolov5 trained model will not work here. You can use a model trained with yolov8 train.py in this case.

from yolov8-streamlit-detection-tracking.

nguyenduylinhqbu avatar nguyenduylinhqbu commented on May 28, 2024

Dear @CodingMantras,
I got it.
Thank you very much.

from yolov8-streamlit-detection-tracking.

Related Issues (11)

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.