This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from diffusers import StableDiffusionPipeline, DPMSolverMultistepScheduler | |
import torch | |
def main(): | |
#//////////////////////////////////////////// | |
seed = 42 | |
model = "Norod78/sd-simpsons-model" | |
#//////////////////////////////////////////// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from diffusers import StableDiffusionPipeline, DPMSolverMultistepScheduler | |
import torch | |
def main(): | |
#//////////////////////////////////////////// | |
seed = 42 | |
model = "runwayml/stable-diffusion-v1-5" | |
#//////////////////////////////////////////// |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/.gitignore b/.gitignore | |
index 70660c5..6b51c8e 100644 | |
--- a/.gitignore | |
+++ b/.gitignore | |
@@ -30,3 +30,6 @@ notification.mp3 | |
.vscode | |
/extensions | |
+cache | |
+gfpgan/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!pip install diffusers==0.2.4 | |
import torch | |
from diffusers import AutoencoderKL | |
from PIL import Image | |
import numpy as np | |
from torchvision import transforms as tfms | |
torch_device = None | |
vae = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import importlib | |
checker_location = importlib.util.find_spec('diffusers.pipelines.stable_diffusion.safety_checker').origin | |
checker_location_flax = importlib.util.find_spec('diffusers.pipelines.stable_diffusion.safety_checker_flax').origin | |
blocker_location_flax = importlib.util.find_spec('diffusers.pipelines.stable_diffusion.pipeline_flax_stable_diffusion').origin | |
#FlaxStableDiffusionPipeline | |
import fileinput |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### pip install diffusers==0.2.4 transformers scipy ftfy | |
#### | |
from diffusers import StableDiffusionPipeline, LMSDiscreteScheduler | |
import torch | |
def main(): | |
seed = 1000 #1000, 42, 420 | |
torch.manual_seed(seed) | |
generator = torch.Generator() |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.