Object Oriented Programming Results #13384
topherbuckley
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Curious if anyone has already implemented this somewhere as I cannot find anything. I'm getting quite frustrated by all the dependence on pathlib and assumed directory structures when dealing with this library. Parsing a directory for files and directories that may or may not exist is quite error prone and frustrating in my opinion. Has anyone looked at wrapping the results into some class? i.e. taking all the outputs from train.py:
and makes them accessible from calls like
yolov5Results.hyp
(e.g. a parsed yaml dict) whereYoloV5Results
defines some class that stores these things in memory. As it stands now thetrain.run
only returns opts. One can useopt.save_dir
to find the results path, but then to interact with any of the weights, csv, or yaml contents, one must:"results.csv"
for a file you hope doesn't change its name in any future updates.Ideally I'd like to see all of this available in whatever is returned from
train.run
, but as a workaround I was thinking to just write a wrapper class that does steps 1-2 above and saves them to some standard .Beta Was this translation helpful? Give feedback.
All reactions