Giter Site home page Giter Site logo

Comments (7)

glenn-jocher avatar glenn-jocher commented on July 23, 2024

@173970984 thanks for the bug report! You are right this is a typo we have in our command! We'll have our web team fix this @kalenmike

With your command it looks like your ultralytics or yolov5 code may simply be out of date. Can you try to update ultralytics and delete your local yolov5 copy and see if this fixes the problem:

pip install -U ultralytics

from hub.

kalenmike avatar kalenmike commented on July 23, 2024

@173970984 @glenn-jocher The typo has been fixed for v0.1.14-beta.

from hub.

kalenmike avatar kalenmike commented on July 23, 2024

@173970984 The error you are seeing in your screenshot:

File "/home/ace/Developer/Websites/development/test-yolo/utils/general.py", line 186, in print_args LOGGER.info(colorstr(s) + ', '.join(f'{k}={v}' for k, v in args.items())) AttributeError: 'str' object has no attribute 'items'

This is due to the way you have structured you folders. The Ultralytics pip package will clone YOLOv5 into ./yolov5 and it already includes the file 'utils/general.py'. As you are running the Ultralytics package from inside an existing YOLOv5 directory you are forcing the Ultralytics pip package to use your version of 'utils/general.py' which happens to be a newer version with breaking changes than what the Ultralytics pip package has included.

We will make some changes on our end to prevent similar issues in the future. For now you only need to run the Ultralytics pip package in it own directory, and let the agent clone the supported version of YOLOv5. Eg:

/hub
--agent.py

Thank you for helping us to improve these tools and if you see anything else please don't hesitate to let us know.

from hub.

glenn-jocher avatar glenn-jocher commented on July 23, 2024

@kalenmike maybe we should rename the utils directory in ultralytics?

from hub.

kalenmike avatar kalenmike commented on July 23, 2024

@glenn-jocher The function that is being used is not in the custom utils/general.py. What is happening is that YOLOv5 is using ./utils/general.py instead of ./yolov5/utils/general.py if it exists. I tested it by cloning YOLOv5 (to ./yolov5) and then running ultralytics.start() from within the ./yolov5. The clone happens as expected into ./yolov5/yolov5 but the root utils/general.py is used when ./yolov5/yolov5/train.py is called. And the tag v6.1 is not compatible with the latest master branch.

A little tricky to explain in text.

A quick fix would be to clone the later version of YOLOv5, by adding a new tag or just cloning master.

from hub.

glenn-jocher avatar glenn-jocher commented on July 23, 2024

@kalenmike @173970984 ultralytics.utils renamed to ultralytics.yolov5_utils now in ultralytics==0.0.17.

You can update your version with pip install -U ultralytics

from hub.

glenn-jocher avatar glenn-jocher commented on July 23, 2024

@173970984 your original issue may now be resolved in ultralytics==0.0.19

Please update with pip install -U ultralytics and let us know if this resolves your issue!

from hub.

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.