diff --git a/README.md b/README.md index 0f77a69..3d67ec9 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,9 @@ We're actively working on improvements and new features. To stay informed: - **🔮 Next Model Survey**: We're looking for community input on the next open-source super-powerful generic restoration model. Share your suggestions in [Issue #164](https://github.com/numz/ComfyUI-SeedVR2_VideoUpscaler/issues/164) ## 🚀 Updates +**2025.11.10 - Version 2.5.8** + +- **🐛 Fix: Windows batch processing duplicate files** - Fixed CLI batch mode processing each file twice on Windows. Also improved directory scanning performance **2025.11.10 - Version 2.5.7** diff --git a/docs/seedvr_logo.png b/docs/seedvr_logo.png new file mode 100644 index 0000000..5582b98 Binary files /dev/null and b/docs/seedvr_logo.png differ diff --git a/inference_cli.py b/inference_cli.py index 3abefcf..388336b 100644 --- a/inference_cli.py +++ b/inference_cli.py @@ -208,10 +208,12 @@ def get_media_files(directory: str) -> List[str]: Returns: Sorted list of file paths (strings) matching video or image extensions """ - files = [] - for ext in VIDEO_EXTENSIONS | IMAGE_EXTENSIONS: - files.extend(Path(directory).glob(f'*{ext}')) - files.extend(Path(directory).glob(f'*{ext.upper()}')) + valid_extensions = VIDEO_EXTENSIONS | IMAGE_EXTENSIONS + path = Path(directory) + + # Get all files and filter by extension (case-insensitive) + files = [f for f in path.iterdir() if f.is_file() and f.suffix.lower() in valid_extensions] + return sorted([str(f) for f in files]) diff --git a/pyproject.toml b/pyproject.toml index f80432f..be3ebd0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "seedvr2_videoupscaler" description = "SeedVR2 official ComfyUI integration: ByteDance-Seed's one-step diffusion-based video/image upscaling with memory-efficient inference" -version = "2.5.7" +version = "2.5.8" authors = [ {name = "numz"}, {name = "adrientoupet"} @@ -37,5 +37,5 @@ Forum = "https://github.com/numz/ComfyUI-SeedVR2_VideoUpscaler/discussions" [tool.comfy] PublisherId = "ainvfx" DisplayName = "ComfyUI-SeedVR2_VideoUpscaler" -Icon = "" +Icon = "https://github.com/numz/ComfyUI-SeedVR2_VideoUpscaler/blob/main/docs/seedvr_logo.png" includes = []