Giter VIP home page Giter VIP logo

Comments (10)

ixez avatar ixez commented on August 24, 2024

It shouldn't work like that.
Please share your model and samples.

from ultralytics.

Joeyabuki99 avatar Joeyabuki99 commented on August 24, 2024

Hi!! I have this repo https://github.com/Joeyabuki99/video_detection.git with all the files. The only problem is that I cannot share with you the dataset for size problems. I can paste here some screenshot of the images if you want just to letting you know how it is done. As I say in the repo, I recorded and annotaated a lot of videos. From these, the frames with bounding boxes and their annotations have been used for the detection task, while for the classification I extracted all the bounding boxes, resized them and used them for the classifier.
If you need the whole dataset, let me know how can I give it to you. Thanks!!

from ultralytics.

ixez avatar ixez commented on August 24, 2024

Can't run your code, it's too much irrelevant stuff and I don't know where to start.
You'd better remove the classifier and other non-essential components to see if YOLO is the problem.

from ultralytics.

glenn-jocher avatar glenn-jocher commented on August 24, 2024

Hi @ixez,

Thank you for sharing your repository. To help you more effectively, let's focus on isolating the issue with YOLOv8. Here are a few steps you can take:

  1. Simplify the Code: Try to create a minimal reproducible example that only includes the YOLOv8 detection part. This will help us determine if the issue is with YOLOv8 or with the integration of the classifier. You can refer to our minimum reproducible example guide for more details.

  2. Update Packages: Ensure you are using the latest versions of torch and ultralytics. Sometimes, bugs are fixed in newer releases, and updating might resolve the issue.

  3. Check Static Object Detection: Run YOLOv8 on a video with static objects without the classifier. You can use the following code snippet to test this:

    from ultralytics import YOLO
    
    # Load your trained YOLOv8 model
    model = YOLO('path/to/your/yolov8_model.pt')
    
    # Run inference on a video
    results = model.predict(source='path/to/your/video.mp4', show=True)
    
    # Display results
    for result in results:
        result.show()
  4. Share Screenshots: If possible, share some screenshots of the frames where the detection fails when objects are static. This can provide more context and help us understand the issue better.

By following these steps, we can better isolate the problem and determine if it's related to YOLOv8 or the integration with your classifier. If the issue persists, please share the simplified code and any relevant details, and we'll be happy to assist further.

from ultralytics.

Joeyabuki99 avatar Joeyabuki99 commented on August 24, 2024

Hi @glenn-jocher these are some screen from the output.
image
image
image
image

from ultralytics.

glenn-jocher avatar glenn-jocher commented on August 24, 2024

Hi @Joeyabuki99,

Thank you for sharing the screenshots! They provide valuable context. To help us further investigate the issue, could you please provide a minimum reproducible example of your code? This will allow us to reproduce the problem on our end and identify a solution more effectively. You can find guidelines for creating a minimum reproducible example here.

Additionally, please ensure you are using the latest versions of torch and ultralytics. Sometimes, updating to the most recent versions can resolve unexpected issues. You can update your packages using the following commands:

pip install --upgrade torch ultralytics

Once you have a simplified version of your code that isolates the YOLOv8 detection part, please share it with us. This will help us pinpoint whether the issue lies with YOLOv8 or the integration with your classifier.

Looking forward to your response! 😊

from ultralytics.

Joeyabuki99 avatar Joeyabuki99 commented on August 24, 2024

Can't run your code, it's too much irrelevant stuff and I don't know where to start. You'd better remove the classifier and other non-essential components to see if YOLO is the problem.

@ixez I uploaded the repository so that u can have the code already done for tests:

  • yolo model already trained in the 'yolov8s_trained' folder
  • 'system.py' is the test file to test the system on the 'video_test.mp4' video
    Just change the paths if you want to try the system, and than run the system.py script. I assume that if something goes wrong and this code in right, the problem is in the dataset

from ultralytics.

glenn-jocher avatar glenn-jocher commented on August 24, 2024

Hi @Joeyabuki99,

Thank you for sharing your repository! To help us investigate the issue effectively, could you please provide a minimum reproducible example that isolates the YOLOv8 detection part? This will allow us to reproduce the problem on our end. You can find guidelines for creating a minimum reproducible example here.

Additionally, please ensure you are using the latest versions of torch and ultralytics. You can update your packages using the following commands:

pip install --upgrade torch ultralytics

Once you have a simplified version of your code, please share it with us. This will help us pinpoint whether the issue lies with YOLOv8 or the integration with your classifier.

Looking forward to your response! 😊

from ultralytics.

ixez avatar ixez commented on August 24, 2024

Can't open the video, it's only 2KB

from ultralytics.

glenn-jocher avatar glenn-jocher commented on August 24, 2024

Hi @ixez,

Thank you for your patience and for providing the repository. It seems like the video file might be corrupted or incomplete, as it's only 2KB in size. Could you please re-upload the video or provide a different sample that we can use to reproduce the issue?

In the meantime, please ensure you are using the latest versions of torch and ultralytics:

pip install --upgrade torch ultralytics

Additionally, if you could provide a minimum reproducible example that isolates the YOLOv8 detection part, it would greatly help us in diagnosing the issue. You can find guidelines for creating a minimum reproducible example here.

Looking forward to your response! 😊

from ultralytics.

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.