JiantaoLin
commited on
Commit
Β·
5e905af
1
Parent(s):
f7a0b52
new
Browse files
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 |
-
|
|
|
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,
|