fbnnb commited on
Commit
710894a
Β·
verified Β·
1 Parent(s): ae7105e

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +1 -1
gradio_app.py CHANGED
@@ -99,7 +99,7 @@ config = OmegaConf.load(config_file)
99
  model_config = config.pop("model", OmegaConf.create())
100
  model_config['params']['unet_config']['params']['use_checkpoint']=False
101
 
102
- model = instantiate_from_config(model_config)
103
  assert os.path.exists(ckpt_path), "Error: checkpoint Not Found!"
104
  model = load_model_checkpoint(model, ckpt_path)
105
  model.eval()
 
99
  model_config = config.pop("model", OmegaConf.create())
100
  model_config['params']['unet_config']['params']['use_checkpoint']=False
101
 
102
+ model = instantiate_from_config(model_config).cuda()
103
  assert os.path.exists(ckpt_path), "Error: checkpoint Not Found!"
104
  model = load_model_checkpoint(model, ckpt_path)
105
  model.eval()