islasher commited on
Commit
1122b7e
·
verified ·
1 Parent(s): ecc1dc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ pad=np.pad
19
  def load_checkpoints(config_path, checkpoint_path, cpu=False):
20
 
21
  with open(config_path) as f:
22
- config = yaml.load(f)
23
 
24
  generator = OcclusionAwareGenerator(
25
  **config["model_params"]["generator_params"], **config["model_params"]["common_params"]
 
19
  def load_checkpoints(config_path, checkpoint_path, cpu=False):
20
 
21
  with open(config_path) as f:
22
+ config = yaml.load(f, Loader=yaml.SafeLoader)
23
 
24
  generator = OcclusionAwareGenerator(
25
  **config["model_params"]["generator_params"], **config["model_params"]["common_params"]