Skip to content

Commit

Permalink
Update autoanchor.py with yaml.SafeLoader (ultralytics#1971)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anon-Artist committed Jan 18, 2021
1 parent bd2bf76 commit 1f33f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/autoanchor.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def print_results(k):

if isinstance(path, str): # *.yaml file
with open(path) as f:
data_dict = yaml.load(f, Loader=yaml.FullLoader) # model dict
data_dict = yaml.load(f, Loader=yaml.SafeLoader) # model dict
from utils.datasets import LoadImagesAndLabels
dataset = LoadImagesAndLabels(data_dict['train'], augment=True, rect=True)
else:
Expand Down

0 comments on commit 1f33f38

Please sign in to comment.