Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ high_threshold = 200
|
|
49 |
# Models
|
50 |
controlnet = ControlNetModel.from_pretrained("lllyasviel/sd-controlnet-canny", torch_dtype=torch.float16)
|
51 |
pipe = DiffusionPipeline.from_pretrained(
|
52 |
-
"
|
53 |
)
|
54 |
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
|
55 |
|
@@ -125,7 +125,7 @@ def infer():
|
|
125 |
#frames, _, _ = read_video(str("./spacex.mp4"), output_format="TCHW")
|
126 |
#print(f"FRAME BEFORE stack: {frames[100]}")
|
127 |
|
128 |
-
prompt = "astronaut crew inside a spaceship
|
129 |
|
130 |
pil2diff_img = Image.open("./frame1.jpg")
|
131 |
canny_image = get_canny_filter(pil2diff_img)
|
|
|
49 |
# Models
|
50 |
controlnet = ControlNetModel.from_pretrained("lllyasviel/sd-controlnet-canny", torch_dtype=torch.float16)
|
51 |
pipe = DiffusionPipeline.from_pretrained(
|
52 |
+
"mikesmodels/Waltz_with_Bashir_Diffusion", controlnet=controlnet, custom_pipeline="stable_diffusion_controlnet_img2img", safety_checker=None, torch_dtype=torch.float16
|
53 |
)
|
54 |
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
|
55 |
|
|
|
125 |
#frames, _, _ = read_video(str("./spacex.mp4"), output_format="TCHW")
|
126 |
#print(f"FRAME BEFORE stack: {frames[100]}")
|
127 |
|
128 |
+
prompt = "wltzwthbshr astronaut crew inside a spaceship"
|
129 |
|
130 |
pil2diff_img = Image.open("./frame1.jpg")
|
131 |
canny_image = get_canny_filter(pil2diff_img)
|