Spaces:
Running
on
Zero
Running
on
Zero
update
Browse files- hf_demo.py +2 -2
hf_demo.py
CHANGED
@@ -51,7 +51,7 @@ def demo_inference_gen_artistic(adapter_choice:str, prompt:str, seed:int=0, step
|
|
51 |
height=512, width=512, scales=[adapter_scale],
|
52 |
save_dir=None, seed=seed,steps=steps, guidance_scale=guidance_scale,
|
53 |
start_noise=-1, show=False, style_prompt=style_prompt, no_load=True,
|
54 |
-
from_scratch=True, device=device, weight_dtype=dtype)[0][
|
55 |
return pred_images
|
56 |
|
57 |
@spaces.GPU
|
@@ -101,7 +101,7 @@ def demo_inference_stylization_artistic(ref_image, adapter_choice:str, prompt:st
|
|
101 |
height=512, width=512, scales=[adapter_scale],
|
102 |
save_dir=None, seed=seed,steps=steps, guidance_scale=guidance_scale,
|
103 |
start_noise=start_noise, show=False, style_prompt=style_prompt, no_load=True,
|
104 |
-
from_scratch=False, device=device, weight_dtype=dtype)[0][
|
105 |
return pred_images
|
106 |
|
107 |
|
|
|
51 |
height=512, width=512, scales=[adapter_scale],
|
52 |
save_dir=None, seed=seed,steps=steps, guidance_scale=guidance_scale,
|
53 |
start_noise=-1, show=False, style_prompt=style_prompt, no_load=True,
|
54 |
+
from_scratch=True, device=device, weight_dtype=dtype)[0][adapter_scale][0]
|
55 |
return pred_images
|
56 |
|
57 |
@spaces.GPU
|
|
|
101 |
height=512, width=512, scales=[adapter_scale],
|
102 |
save_dir=None, seed=seed,steps=steps, guidance_scale=guidance_scale,
|
103 |
start_noise=start_noise, show=False, style_prompt=style_prompt, no_load=True,
|
104 |
+
from_scratch=False, device=device, weight_dtype=dtype)[0][adapter_scale][0]
|
105 |
return pred_images
|
106 |
|
107 |
|