rhfeiyang commited on
Commit
acb4c4f
·
1 Parent(s): 178d1a7
Files changed (1) hide show
  1. 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][1.0][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][1.0][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