This commit is contained in:
lvmin
2023-08-09 12:10:42 -07:00
parent 7386161937
commit 1a904ba333
10 changed files with 147527 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
import os
import torch
from omegaconf import OmegaConf
from sgm.util import instantiate_from_config
config_path = './sd_xl_base.yaml'
config = OmegaConf.load(config_path)
model = instantiate_from_config(config.model).cpu()
a = 0