From c22c3dec562821e646fa0ec9a56d5969f4011479 Mon Sep 17 00:00:00 2001 From: greentext2 <112735219+greentext2@users.noreply.github.com> Date: Sat, 3 Sep 2022 13:38:57 -0500 Subject: [PATCH 1/2] Update README.md with new Anaconda install steps (#347) pip3 version did not work for me and this is the recommended way to install Anaconda now it seems --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 68902491401..a171a2bea7f 100644 --- a/README.md +++ b/README.md @@ -427,10 +427,12 @@ There are separate installation walkthroughs for [Linux](#linux), [Windows](#win - Python (version 3.8.5 recommended; higher may work) - git -2. Install the Python Anaconda environment manager using pip3. +2. Install the Python Anaconda environment manager. ``` -~$ pip3 install anaconda +~$ wget https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh +~$ chmod +x Anaconda3-2022.05-Linux-x86_64.sh +~$ ./Anaconda3-2022.05-Linux-x86_64.sh ``` After installing anaconda, you should log out of your system and log back in. If the installation From b609364b723d68dbda509943f608106924b39d12 Mon Sep 17 00:00:00 2001 From: Justin Wong <1584142+wongjustin99@users.noreply.github.com> Date: Sun, 4 Sep 2022 01:23:32 -0400 Subject: [PATCH 2/2] fix save_original flag saving to the same filename Before this, the `--save_orig` flag was not working. The upscaled/GFPGAN would overwrite the original output image. --- ldm/simplet2i.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ldm/simplet2i.py b/ldm/simplet2i.py index c32f57c3886..3624826f778 100644 --- a/ldm/simplet2i.py +++ b/ldm/simplet2i.py @@ -412,10 +412,7 @@ def process_image(image,seed): f'>> Error running RealESRGAN - Your image was not upscaled.\n{e}' ) if image_callback is not None: - if save_original: - image_callback(image, seed) - else: - image_callback(image, seed, upscaled=True) + image_callback(image, seed, upscaled=True) else: # no callback passed, so we simply replace old image with rescaled one result[0] = image