Emaad commited on
Commit
a2657b5
1 Parent(s): 3d993f1

Update prediction.py

Browse files
Files changed (1) hide show
  1. prediction.py +2 -0
prediction.py CHANGED
@@ -46,6 +46,8 @@ def run_image_prediction(
46
  config["model"]["params"]["condition_model_path"] = None
47
  config["model"]["params"]["vqgan_model_path"] = None
48
 
 
 
49
  # Instantiate model from config and move to device
50
  model = instantiate_from_config(config.model).to(device)
51
 
 
46
  config["model"]["params"]["condition_model_path"] = None
47
  config["model"]["params"]["vqgan_model_path"] = None
48
 
49
+ os.chdir(os.path.dirname(model_ckpt_path))
50
+
51
  # Instantiate model from config and move to device
52
  model = instantiate_from_config(config.model).to(device)
53