JiantaoLin commited on
Commit
1576cad
·
1 Parent(s): e945abc
Files changed (1) hide show
  1. pipeline/kiss3d_wrapper.py +1 -1
pipeline/kiss3d_wrapper.py CHANGED
@@ -161,7 +161,7 @@ def init_wrapper_from_config(config_path):
161
  # logger.warning(f"GPU memory allocated after load llm model on {llm_device}: {torch.cuda.memory_allocated(device=llm_device) / 1024**3} GB")
162
  else:
163
  llm, llm_tokenizer = None, None
164
-
165
  return kiss3d_wrapper(
166
  config = config_,
167
  flux_pipeline = flux_pipe,
 
161
  # logger.warning(f"GPU memory allocated after load llm model on {llm_device}: {torch.cuda.memory_allocated(device=llm_device) / 1024**3} GB")
162
  else:
163
  llm, llm_tokenizer = None, None
164
+ torch.cuda.empty_cache()
165
  return kiss3d_wrapper(
166
  config = config_,
167
  flux_pipeline = flux_pipe,