JiantaoLin commited on
Commit
5e905af
Β·
1 Parent(s): f7a0b52
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -154,7 +154,8 @@ def text_to_image(prompt, seed=None, strength=1.0,lora_scale=1.0, num_inference_
154
  # if init_image_path is not None:
155
  # init_image = Image.open(init_image_path)
156
  subprocess.run(['nvidia-smi']) # ζ΅‹θ―• CUDA ζ˜―ε¦ε―η”¨
157
- result = k3d_wrapper.generate_3d_bundle_image_text(
 
158
  prompt,
159
  image=init_image,
160
  strength=strength,
 
154
  # if init_image_path is not None:
155
  # init_image = Image.open(init_image_path)
156
  subprocess.run(['nvidia-smi']) # ζ΅‹θ―• CUDA ζ˜―ε¦ε―η”¨
157
+ with torch.no_grad():
158
+ result = k3d_wrapper.generate_3d_bundle_image_text(
159
  prompt,
160
  image=init_image,
161
  strength=strength,