refactor(ui): replace tqdm with rich for enhanced console output

This commit is contained in:
2026-03-06 16:20:38 +08:00
parent 4a6918ce56
commit e832f9d656
9 changed files with 113 additions and 95 deletions

View File

@@ -7,7 +7,7 @@ from pathlib import Path
import numpy as np
from PIL import Image
from PIL.Image import Resampling
from tqdm.auto import tqdm
from rich.progress import track
class ImageSynthesizer:
@@ -287,7 +287,7 @@ class ImageSynthesizer:
generated_files: list[Path] = []
for i in tqdm(range(self.num_scenes), desc="Generating scenes"):
for i in track(range(self.num_scenes), description="Generating scenes"):
# Update seed for each scene
random.seed(self.seed + i)
np.random.seed(self.seed + i)