euiia commited on
Commit
84cef39
·
verified ·
1 Parent(s): b043f1d

Update engineers/deformes4D.py

Browse files
Files changed (1) hide show
  1. engineers/deformes4D.py +2 -3
engineers/deformes4D.py CHANGED
@@ -24,7 +24,7 @@ import shutil
24
  from pathlib import Path
25
  from typing import List, Tuple, Generator, Dict, Any, Optional
26
 
27
- from managers.ltx_manager import ltx_manager_singleton, ltx_manager
28
  from managers.latent_enhancer_manager import latent_enhancer_specialist_singleton
29
  from managers.vae_manager import vae_manager_singleton
30
  from gemini_helpers import gemini_singleton
@@ -47,7 +47,6 @@ class Deformes4DEngine:
47
  Orchestrates the generation, latent post-production, and final rendering of video fragments.
48
  """
49
  def __init__(self, workspace_dir="deformes_workspace"):
50
- #self.ltx_manager = ltx_manager
51
  self.workspace_dir = workspace_dir
52
  self.device = 'cuda' if torch.cuda.is_available() else 'cpu'
53
  logger.info("Deformes4D Specialist (ADUC-SDR Executor) initialized.")
@@ -278,7 +277,7 @@ class Deformes4DEngine:
278
  def _generate_latent_tensor_internal(self, conditioning_items, ltx_params, target_resolution, total_frames_to_generate):
279
  """Internal helper to call the LTX manager."""
280
  final_ltx_params = {**ltx_params, 'width': target_resolution[0], 'height': target_resolution[1], 'video_total_frames': total_frames_to_generate, 'video_fps': 24, 'current_fragment_index': int(time.time()), 'conditioning_items_data': conditioning_items}
281
- return self.ltx_manager.generate_latent_fragment(**final_ltx_params)
282
 
283
  def _quantize_to_multiple(self, n, m):
284
  """Helper to round n to the nearest multiple of m."""
 
24
  from pathlib import Path
25
  from typing import List, Tuple, Generator, Dict, Any, Optional
26
 
27
+ from managers.ltx_manager import ltx_manager_singleton
28
  from managers.latent_enhancer_manager import latent_enhancer_specialist_singleton
29
  from managers.vae_manager import vae_manager_singleton
30
  from gemini_helpers import gemini_singleton
 
47
  Orchestrates the generation, latent post-production, and final rendering of video fragments.
48
  """
49
  def __init__(self, workspace_dir="deformes_workspace"):
 
50
  self.workspace_dir = workspace_dir
51
  self.device = 'cuda' if torch.cuda.is_available() else 'cpu'
52
  logger.info("Deformes4D Specialist (ADUC-SDR Executor) initialized.")
 
277
  def _generate_latent_tensor_internal(self, conditioning_items, ltx_params, target_resolution, total_frames_to_generate):
278
  """Internal helper to call the LTX manager."""
279
  final_ltx_params = {**ltx_params, 'width': target_resolution[0], 'height': target_resolution[1], 'video_total_frames': total_frames_to_generate, 'video_fps': 24, 'current_fragment_index': int(time.time()), 'conditioning_items_data': conditioning_items}
280
+ return self.ltx_manager_singleton.generate_latent_fragment(**final_ltx_params)
281
 
282
  def _quantize_to_multiple(self, n, m):
283
  """Helper to round n to the nearest multiple of m."""