Code Monkey home page Code Monkey logo

Comments (9)

TDVL avatar TDVL commented on July 20, 2024

Hello,
Basically, does it matter if the weights are obtained with an older or a newer version of the yolov5? I did not make any modifications here to the yolov5 itself. For me, it is important that the yolov5 uses my weights to detect objects that are of interest to me.
Is it possible that the weight change, the new best.pt file affects the whole model? In the Python version this was not a problem, I have only changed the weights name in the terminal when I have called the yolov5 object detector.
Here, I have changed the weights name in the launch file, however there is a new error (please se the screenshot from yesterday), I have tried to find this error in forums all day, but I didn't find any solution of this problem.
Finally: what does it mean this error/bug?
Exception: Can't get attribute. Cache maybe out of date, try force_reload=TRUE
Please, could you suggest a solution for this?
Thank you in advance for your attention.

from yolov5_ros.

TDVL avatar TDVL commented on July 20, 2024

Hello,
Still I cannot run with my weights the yolo in ROS.
The path to the model and to the weights have been added.
When I change the weights, the error is again on.
Screenshot from 2022-09-07 08-32-44
The force_reload=True does not help. Here is the screenshot.
Screenshot from 2022-09-07 08-38-00
Hence I have followed all the guides and suggestions, but something is wrong with new weights.
This ROS repo uses your yolov5 model and it works with original *.pt files?
Is it possible that only the weights change can cause these problems?

from yolov5_ros.

TDVL avatar TDVL commented on July 20, 2024

Hello Zhitao,
Your ROS yolov5 is now working, however it doesn't recognize my weights. I have changed the weights name in the launch file, and the yolov5 detects the object from the official weights (car, remote), but it should detect the connector on the car.
What could be the problem? Please, will you check it?
Screenshot from 2022-09-15 21-01-28

from yolov5_ros.

qq44642754a avatar qq44642754a commented on July 20, 2024

You can modify yolov5 folders for the version you are using

from yolov5_ros.

TDVL avatar TDVL commented on July 20, 2024

Hello. Thank you for the response. What folder, exactly what files should I modify and what part. I don't want to spoil the working yolo.
Also, I have deleted the original yolov5.pt from weights folder, then I have copied and renamed my best.pt to yolov5.pt. So how can yolo use the old weights then?
Thank you in advance.

from yolov5_ros.

qq44642754a avatar qq44642754a commented on July 20, 2024

You can simply replace the entire file yolov5 for the version you are using. Here i use the version of yolov5 P6.0. And the second question, you can re-download the original yolov5.pt and modify the weights folder in the launch file

from yolov5_ros.

TDVL avatar TDVL commented on July 20, 2024

Where is the yolov5 file? I can see only yolo.py file.
The weights should not be independent of the yolov5 version?
I only want to change the weights in order to detect my custom object.
This weights replacement works well in Python with this Ultralytics yolo?
I don't need the original yolov5s.pt, I need my weights. I can't use them after I rename my best.pt to yolov5s.pt?

from yolov5_ros.

TDVL avatar TDVL commented on July 20, 2024

Hello,
I have added the path to the yolo model, but there is a new error now.
Screenshot from 2022-09-19 11-56-28
What could be the problem now?
Also, is it not possible to use your model and ROS implementation, but with my best.pt weights? According to the documentation, the *.pt file not depends of the yolo version.
Is this possible? My best.pt is also trained with yolov5s, only in Google Colab and it works well in Python.

from yolov5_ros.

kankanjiuzou123 avatar kankanjiuzou123 commented on July 20, 2024

Same problem ,have you solved this?

from yolov5_ros.

Related Issues (10)

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.