Преглед изворни кода

Security Fix for Arbitrary Code Execution - huntr.dev (#1962)

Co-authored-by: Anon-Artist <61599526+Anon-Artist@users.noreply.github.com>
Co-authored-by: Jamie Slome <jamie@418sec.com>
5.0
huntr.dev | the place to protect open source GitHub пре 3 година
родитељ
комит
b5d851d653
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      train.py

+ 1
- 1
train.py Прегледај датотеку

@@ -59,7 +59,7 @@ def train(hyp, opt, device, tb_writer=None, wandb=None):
cuda = device.type != 'cpu'
init_seeds(2 + rank)
with open(opt.data) as f:
data_dict = yaml.load(f, Loader=yaml.FullLoader) # data dict
data_dict = yaml.load(f, Loader=yaml.SafeLoader) # data dict
with torch_distributed_zero_first(rank):
check_dataset(data_dict) # check
train_path = data_dict['train']

Loading…
Откажи
Сачувај