added url ref for source of img2img.py and initimg2img.py

This commit is contained in:
Tony 2024-08-10 20:58:23 -06:00
parent bae3e88d2e
commit e2f4d271f0
3 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,7 @@ def slugify(text):
text = re.sub(r"\s+", "-", text) text = re.sub(r"\s+", "-", text)
return text return text
prompt = "the town center of a small futuristic town with a fountain and geometric dodecahedral d20 buildings with a road leading out to grassy plains dotted with very tall trees" prompt = "the town center of a small futuristic town with a fountain and dodecahedral d20 buildings similar to small geodesic domes with a road leading out to grassy plains sparsely dotted with very broad tall trees"
height, width = 720, 1280 height, width = 720, 1280
ckpt_id = "black-forest-labs/FLUX.1-schnell" ckpt_id = "black-forest-labs/FLUX.1-schnell"

View File

@ -1,3 +1,4 @@
# from https://discuss.huggingface.co/t/generating-and-saving-multiple-images-using-img2img-pipeline/30929
from diffusers import StableDiffusionPipeline, EulerDiscreteScheduler from diffusers import StableDiffusionPipeline, EulerDiscreteScheduler
import torch import torch
from pathlib import Path from pathlib import Path

View File

@ -1,3 +1,4 @@
# from https://discuss.huggingface.co/t/generating-and-saving-multiple-images-using-img2img-pipeline/30929
from diffusers import StableDiffusionImg2ImgPipeline, EulerDiscreteScheduler from diffusers import StableDiffusionImg2ImgPipeline, EulerDiscreteScheduler
from pathlib import Path from pathlib import Path
from PIL import Image from PIL import Image