ultralytics 8.2.87 Ray shutdown() workers after tuning (#15976)
This commit is contained in:
parent
b2ab667f00
commit
3fc14b5fec
3 changed files with 9 additions and 4 deletions
|
|
@ -143,5 +143,10 @@ def run_ray_tune(
|
|||
# Run the hyperparameter search
|
||||
tuner.fit()
|
||||
|
||||
# Return the results of the hyperparameter search
|
||||
return tuner.get_results()
|
||||
# Get the results of the hyperparameter search
|
||||
results = tuner.get_results()
|
||||
|
||||
# Shut down Ray to clean up workers
|
||||
ray.shutdown()
|
||||
|
||||
return results
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue