Skip to content

Official repository for LTX-Video

Inference: Explictly set the logger name

Yoav HaCohenfa38d5bf62bb
diff --git a/inference.py b/inference.py
index 5e22552..3f18e46 100644
--- a/inference.py
+++ b/inference.py
@@ -26,6 +26,8 @@ MAX_HEIGHT = 720
MAX_WIDTH = 1280
MAX_NUM_FRAMES = 257
+logger = logging.get_logger("LTX-Video")
+
def get_total_gpu_memory():
if torch.cuda.is_available():
@@ -295,8 +297,6 @@ def main():
help="Sampler to use for noise scheduling. Can be either 'uniform' or 'linear-quadratic'. If not specified, uses the sampler from the checkpoint.",
)
- logger = logging.get_logger(__name__)
-
args = parser.parse_args()
logger.warning(f"Running generation with arguments: {args}")