Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PW_FT_classification/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def main(
os.environ["NUMEXPR_NUM_THREADS"] = str(np_threads)
# Load and set configurations from the YAML file
with open(config) as f:
conf = Munch(yaml.load(f, Loader=yaml.FullLoader))
conf = Munch(yaml.safe_load(f))
conf.evaluate = evaluate
conf.val = val
conf.test = test
Expand Down
2 changes: 1 addition & 1 deletion PW_FT_detection/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def main(config:str='./config.yaml'):

# Load and set configurations from the YAML file
with open(config) as f:
cfg = Munch(yaml.load(f, Loader=yaml.FullLoader))
cfg = Munch(yaml.safe_load(f))

if cfg.resume:
model_path = cfg.weights
Expand Down
Loading