From e1413a0f7fc6abebe531d24050aa6b7a957dff60 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Fri, 13 Jan 2023 08:29:53 -0500 Subject: [PATCH] update --- TODO.md | 14 ++++++++++++++ modules/textual_inversion/dataset.py | 3 +-- wiki | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index a73240e4d..f701cd589 100644 --- a/TODO.md +++ b/TODO.md @@ -52,12 +52,26 @@ Tech that can be integrated as part of the core workflow... - - +# Experimental + +Cool stuff that is not integrated anywhere... + +- Bunch of stuff: +- [TensorRT](https://www.photoroom.com/tech/stable-diffusion-25-percent-faster-and-save-seconds/) +- [KLMC2 Animation](https://colab.research.google.com/github/dmarx/notebooks/blob/main/Stable_Diffusion_KLMC2_Animation.ipynb) +- [Disco Diffusion](https://colab.research.google.com/github/alembics/disco-diffusion/blob/main/Disco_Diffusion.ipynb) +- [Video Killed the Radio Star](https://colab.research.google.com/github/dmarx/video-killed-the-radio-star/blob/main/Video_Killed_The_Radio_Star_Defusion.ipynb) + # External Ideas that can be value-added to core tech... - Prevalent colors to interrogate - Auto-Sort inputs by face recognition +- Use semantic segmentation to remove background from inputs - Auto-filter training inputs based - Auto-filter training inputs based on blur + +if shared.opts.training_enable_tensorboard and shared.opts.training_tensorboard_save_images: +clip_grad_mode \ No newline at end of file diff --git a/modules/textual_inversion/dataset.py b/modules/textual_inversion/dataset.py index 8e793d90e..fa48708e4 100644 --- a/modules/textual_inversion/dataset.py +++ b/modules/textual_inversion/dataset.py @@ -52,6 +52,7 @@ class PersonalizedBase(Dataset): self.shuffle_tags = shuffle_tags self.tag_drop_out = tag_drop_out + print("Preparing dataset...") for path in tqdm.tqdm(self.image_paths): if shared.state.interrupted: raise Exception("interrupted") @@ -109,8 +110,6 @@ class PersonalizedBase(Dataset): del latent_sample self.length = len(self.dataset) - print(f"Dataset ready with {self.length} images") - assert self.length > 0, "No images have been found in the dataset." self.batch_size = min(batch_size, self.length) self.gradient_step = min(gradient_step, self.length // self.batch_size) diff --git a/wiki b/wiki index 34bcbf9d5..eb3403bf6 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit 34bcbf9d5b86ddeecd2307374ad44e4f463917fa +Subproject commit eb3403bf6e4355ca597d0f6a17c2142974b39267