i
This commit is contained in:
parent
6530ddc368
commit
883352cb50
7
entry.py
7
entry.py
@ -70,6 +70,11 @@ def get_batch(keys, value_dict, N, device="cuda"):
|
||||
.to(device)
|
||||
.repeat(*N, 1)
|
||||
)
|
||||
batch_uc["target_size_as_tuple"] = (
|
||||
torch.tensor([value_dict["target_height"], value_dict["target_width"]])
|
||||
.to(device)
|
||||
.repeat(*N, 1) / 2.0
|
||||
)
|
||||
else:
|
||||
batch[key] = value_dict[key]
|
||||
|
||||
@ -95,6 +100,8 @@ sampler = EulerAncestralSampler(
|
||||
verbose=True,
|
||||
)
|
||||
|
||||
torch.manual_seed(123)
|
||||
|
||||
config_path = './sd_xl_base.yaml'
|
||||
config = OmegaConf.load(config_path)
|
||||
model = instantiate_from_config(config.model).cpu()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user