JiantaoLin commited on
Commit
0182054
·
1 Parent(s): 873da0f
Files changed (2) hide show
  1. app.py +1 -1
  2. pipeline/kiss3d_wrapper.py +1 -1
app.py CHANGED
@@ -149,7 +149,7 @@ 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()
 
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
+ @spaces.GPU
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()
pipeline/kiss3d_wrapper.py CHANGED
@@ -477,7 +477,7 @@ class kiss3d_wrapper(object):
477
  """
478
  return: gen_3d_bundle_image, torch.Tensor of shape (3, 1024, 2048), range [0., 1.]
479
  """
480
-
481
  if isinstance(self.flux_pipeline, FluxImg2ImgPipeline):
482
  flux_pipeline = self.flux_pipeline
483
  else:
 
477
  """
478
  return: gen_3d_bundle_image, torch.Tensor of shape (3, 1024, 2048), range [0., 1.]
479
  """
480
+ print(f"==> generate_3d_bundle_image_text: {prompt}")
481
  if isinstance(self.flux_pipeline, FluxImg2ImgPipeline):
482
  flux_pipeline = self.flux_pipeline
483
  else: