Westlake-AGI-Lab commited on
Commit
e5b20d0
·
verified ·
1 Parent(s): eed0bd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -133,8 +133,7 @@ Now, use this detailed instruction prompt to generate the decomposed sub-prompts
133
 
134
  def init_pipeline():
135
  device = torch.device('cuda:0') if torch.cuda.is_available() else torch.device('cpu')
136
- pipe = ProT2IPipeline.from_pretrained("SG161222/RealVisXL_V4.0", use_safetensors=True, variant='fp16').to(torch.float16)
137
- pipe.enable_model_cpu_offload()
138
  return pipe, device
139
 
140
  def parse_sub_prompts(text):
 
133
 
134
  def init_pipeline():
135
  device = torch.device('cuda:0') if torch.cuda.is_available() else torch.device('cpu')
136
+ pipe = ProT2IPipeline.from_pretrained("SG161222/RealVisXL_V4.0", use_safetensors=True, variant='fp16').to(torch.float16).to(device)
 
137
  return pipe, device
138
 
139
  def parse_sub_prompts(text):