from clip_text_custom_embedder_xl import text_embeddings_sdxl
from diffusers import StableDiffusionXLPipeline
import torch
pipe = StableDiffusionXLPipeline.from_pretrained(model_id, torch_dtype=torch.float16).to('cuda')
prompt = "((masterpiece, best quality)), white background, close-up, 1girl, litte smile"
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
#!/usr/bin/python | |
# -*- coding:utf-8 -*- | |
# ************************* | |
# ** Before running this ** | |
# ** code ensure you've ** | |
# ** turned on SPI on ** | |
# ** your Raspberry Pi ** | |
# ** & installed the ** | |
# ** Waveshare library ** |
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
# original: https://gist.github.com/1ort/2fe6214cf1abe4c07087aac8d91d0d8a | |
import imp | |
from operator import truediv | |
import modules.scripts as scripts | |
import gradio as gr | |
import os | |
from modules import images | |
from modules.processing import process_images, Processed, StableDiffusionProcessingImg2Img |