Skip to content

Commit

Permalink
Update plots.py with yaml.SafeLoader (ultralytics#1968)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anon-Artist authored Jan 18, 2021
1 parent 38ebcb0 commit a06670d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def plot_labels(labels, save_dir=Path(''), loggers=None):
def plot_evolution(yaml_file='data/hyp.finetune.yaml'): # from utils.plots import *; plot_evolution()
# Plot hyperparameter evolution results in evolve.txt
with open(yaml_file) as f:
hyp = yaml.load(f, Loader=yaml.FullLoader)
hyp = yaml.load(f, Loader=yaml.SafeLoader)
x = np.loadtxt('evolve.txt', ndmin=2)
f = fitness(x)
# weights = (f - f.min()) ** 2 # for weighted results
Expand Down

0 comments on commit a06670d

Please sign in to comment.