From 3da72e1e87028954d1119534aee678361e54c8b5 Mon Sep 17 00:00:00 2001 From: Vidhu Mathur <74452705+Kranium2002@users.noreply.github.com> Date: Fri, 9 Jun 2023 15:09:26 +0000 Subject: [PATCH 1/2] chore(change): x_samples variable is not defined --- oryx-build-commands.txt | 2 ++ scripts/img2img_k.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 oryx-build-commands.txt diff --git a/oryx-build-commands.txt b/oryx-build-commands.txt new file mode 100644 index 000000000..d647bdf7f --- /dev/null +++ b/oryx-build-commands.txt @@ -0,0 +1,2 @@ +PlatformWithVersion=Python +BuildCommands=conda env create --file environment.yml --prefix ./venv --quiet diff --git a/scripts/img2img_k.py b/scripts/img2img_k.py index d35aef7b8..d26fce595 100644 --- a/scripts/img2img_k.py +++ b/scripts/img2img_k.py @@ -279,7 +279,7 @@ def main(): x_samples_ddim = accelerator.gather(x_samples_ddim) if accelerator.is_main_process and not opt.skip_save: - for x_sample in x_samples: + for x_sample in x_samples_ddim: x_sample = 255. * rearrange(x_sample.cpu().numpy(), 'c h w -> h w c') Image.fromarray(x_sample.astype(np.uint8)).save( os.path.join(sample_path, f"{base_count:05}.png")) From f0e495c554e03ce6c7f64fad99b40b07d5b796fc Mon Sep 17 00:00:00 2001 From: Vidhu Mathur <74452705+Kranium2002@users.noreply.github.com> Date: Fri, 9 Jun 2023 20:51:08 +0530 Subject: [PATCH 2/2] Delete oryx-build-commands.txt --- oryx-build-commands.txt | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 oryx-build-commands.txt diff --git a/oryx-build-commands.txt b/oryx-build-commands.txt deleted file mode 100644 index d647bdf7f..000000000 --- a/oryx-build-commands.txt +++ /dev/null @@ -1,2 +0,0 @@ -PlatformWithVersion=Python -BuildCommands=conda env create --file environment.yml --prefix ./venv --quiet