JiantaoLin
commited on
Commit
Β·
7b8e6e3
1
Parent(s):
0762ab7
new
Browse files- app.py +2 -2
- pipeline/kiss3d_wrapper.py +1 -1
app.py
CHANGED
@@ -149,9 +149,9 @@ def text_to_detailed(prompt, seed=None):
|
|
149 |
# print(f"Before text_to_detailed: {torch.cuda.memory_allocated() / 1024**3} GB")
|
150 |
return k3d_wrapper.get_detailed_prompt(prompt, seed)
|
151 |
|
152 |
-
|
153 |
def text_to_image(prompt, seed=None, strength=1.0,lora_scale=1.0, num_inference_steps=30, redux_hparam=None, init_image=None, **kwargs):
|
154 |
-
print(f"Before text_to_image: {torch.cuda.memory_allocated() / 1024**3} GB")
|
155 |
k3d_wrapper.renew_uuid()
|
156 |
init_image = None
|
157 |
if init_image_path is not None:
|
|
|
149 |
# print(f"Before text_to_detailed: {torch.cuda.memory_allocated() / 1024**3} GB")
|
150 |
return k3d_wrapper.get_detailed_prompt(prompt, seed)
|
151 |
|
152 |
+
|
153 |
def text_to_image(prompt, seed=None, strength=1.0,lora_scale=1.0, num_inference_steps=30, redux_hparam=None, init_image=None, **kwargs):
|
154 |
+
# print(f"Before text_to_image: {torch.cuda.memory_allocated() / 1024**3} GB")
|
155 |
k3d_wrapper.renew_uuid()
|
156 |
init_image = None
|
157 |
if init_image_path is not None:
|
pipeline/kiss3d_wrapper.py
CHANGED
@@ -462,7 +462,7 @@ class kiss3d_wrapper(object):
|
|
462 |
logger.info(f'Save image to {save_path}')
|
463 |
|
464 |
return preprocessed
|
465 |
-
|
466 |
def generate_3d_bundle_image_text(self,
|
467 |
prompt,
|
468 |
image=None,
|
|
|
462 |
logger.info(f'Save image to {save_path}')
|
463 |
|
464 |
return preprocessed
|
465 |
+
@spaces.GPU
|
466 |
def generate_3d_bundle_image_text(self,
|
467 |
prompt,
|
468 |
image=None,
|