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
CONVERTED_MODEL_PATH = "path to converted v2 depth model" | |
DEVICE = "cuda" | |
INIT_IMAGE = "path to init image or None" | |
DEPTH_IMAGE = "path to black and white depth map" | |
OUTPUT_PATH = "path to save the result" | |
import diffusers | |
from diffusers.pipelines.stable_diffusion import StableDiffusionPipelineOutput | |
import torch |