Skip to content

Commit

Permalink
Fix for plot_evolve() string argument (ultralytics#4639)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Sep 1, 2021
1 parent edd1475 commit d1592db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,9 @@ def profile_idetection(start=0, stop=0, labels=(), save_dir=''):
plt.savefig(Path(save_dir) / 'idetection_profile.png', dpi=200)


def plot_evolve(evolve_csv=Path('path/to/evolve.csv')): # from utils.plots import *; plot_evolve()
def plot_evolve(evolve_csv='path/to/evolve.csv'): # from utils.plots import *; plot_evolve()
# Plot evolve.csv hyp evolution results
evolve_csv = Path(evolve_csv)
data = pd.read_csv(evolve_csv)
keys = [x.strip() for x in data.columns]
x = data.values
Expand Down

0 comments on commit d1592db

Please sign in to comment.