Spaces:
Sleeping
Sleeping
Anonymous
commited on
Commit
·
913d8ed
1
Parent(s):
ef0c9ce
update app
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ def infer(prompt):
|
|
| 45 |
config_1024 = OmegaConf.load(config_1024)
|
| 46 |
model_config_1024 = config_1024.pop("model", OmegaConf.create())
|
| 47 |
model_1024 = instantiate_from_config(model_config_1024)
|
| 48 |
-
|
| 49 |
model_1024 = load_model_checkpoint(model_1024, ckpt_path_1024)
|
| 50 |
model_1024.eval()
|
| 51 |
model = model_1024
|
|
@@ -57,7 +57,7 @@ def infer(prompt):
|
|
| 57 |
config_256 = OmegaConf.load(config_256)
|
| 58 |
model_config_256 = config_256.pop("model", OmegaConf.create())
|
| 59 |
model_256 = instantiate_from_config(model_config_256)
|
| 60 |
-
|
| 61 |
model_256 = load_model_checkpoint(model_256, ckpt_path_256)
|
| 62 |
model_256.eval()
|
| 63 |
model = model_256
|
|
|
|
| 45 |
config_1024 = OmegaConf.load(config_1024)
|
| 46 |
model_config_1024 = config_1024.pop("model", OmegaConf.create())
|
| 47 |
model_1024 = instantiate_from_config(model_config_1024)
|
| 48 |
+
model_1024 = model_1024.cuda()
|
| 49 |
model_1024 = load_model_checkpoint(model_1024, ckpt_path_1024)
|
| 50 |
model_1024.eval()
|
| 51 |
model = model_1024
|
|
|
|
| 57 |
config_256 = OmegaConf.load(config_256)
|
| 58 |
model_config_256 = config_256.pop("model", OmegaConf.create())
|
| 59 |
model_256 = instantiate_from_config(model_config_256)
|
| 60 |
+
model_256 = model_256.cuda()
|
| 61 |
model_256 = load_model_checkpoint(model_256, ckpt_path_256)
|
| 62 |
model_256.eval()
|
| 63 |
model = model_256
|