Comments (7)
@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.
@173970984 @glenn-jocher The typo has been fixed for v0.1.14-beta.
from hub.
@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.
@kalenmike maybe we should rename the utils directory in ultralytics?
from hub.
@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.
@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.
@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)
- How to download training logs to view in tensorflow? HOT 1
- Team member invitation is not sending the email invitation HOT 1
- Resolution Option, Does it need to be square 1920*1920? Can I do 1920*1080? HOT 2
- Integrating Yolo V8 For Football Analysis HOT 5
- unable to process the dataset HOT 3
- APP11 HOT 4
- my model is optimizing the weights and giving me the option of preview and deployment HOT 38
- Merging datasets HOT 4
- Ultralitics HUB can retrieve Roboflow dataset to train HOT 16
- Stitched image detection HOT 4
- This account is currently being deleted? HOT 2
- Model Cant be load and stuck at optimize HOT 5
- 'NoneType' object has no attribute 'xyxy' HOT 2
- Https connection pool error HOT 2
- How to get the app on huawei phones? HOT 2
- Uploading datasets from Roboflow seem to have 0 validation images HOT 5
- Problem in epoch 99 HOT 5
- INT 8 quantization is not implemented when selected to export TensorFlow Lite HOT 4
- training is not completed HOT 4
- Can't export tensorflow lite HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hub.