diff --git a/entry.py b/entry.py index 5eca755..d3b15a2 100644 --- a/entry.py +++ b/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() diff --git a/img.png b/img.png index aa1869b..0fb722c 100644 Binary files a/img.png and b/img.png differ