v3.0.6 Add Mask Repeat, Get File Count, Load Image From Folder, and Load Video From Folder nodes

This commit is contained in:
yige1127
2025-12-14 20:51:33 +08:00
parent de3dae4ac7
commit c02dc0fa2e
37 changed files with 2006 additions and 67 deletions
+24
View File
@@ -0,0 +1,24 @@
# Get File Count
**Node Purpose:** Counts the number of files of a specific type (Image or Video) in a folder.
## Inputs
| Name | Port | Type | Default | Range | Description |
| ---- | ---- | ---- | ------- | ----- | ----------- |
| `folder` | - | STRING | "" | - | The absolute path to the folder to check. |
| `type` | - | COMBO | "image" | "image" / "video" | The type of files to count. |
| `include_subfolder` | - | BOOLEAN | True | - | Whether to search in subfolders. |
## Outputs
| Name | Type | Description |
|------|------|-------------|
| `count` | INT | The total count of matching files found. |
## Features
- **Format Filtering**: Counts files based on selected type:
- **Image**: `.png`, `.jpg`, `.jpeg`, `.bmp`, `.tiff`, `.webp`
- **Video**: `.webm`, `.mp4`, `.mkv`, `.gif`, `.mov`, `.avi`
- **Utility**: Useful for iterating through datasets or validating folder contents before processing.
+24
View File
@@ -0,0 +1,24 @@
# Get File Count - 获取文件数量
**节点功能:** 统计文件夹中指定类型(图像或视频)的文件数量。
## 输入
| 参数名称 | 入端选择 | 数据类型 | 默认值 | 取值范围 | 描述 |
| -------- | -------- | -------- | ------ | -------- | ---- |
| `folder` | - | STRING | "" | - | 要检查的文件夹绝对路径。 |
| `type` | - | COMBO | "image" | "image" / "video" | 要统计的文件类型。 |
| `include_subfolder` | - | BOOLEAN | True | - | 是否搜索子文件夹。 |
## 输出
| 输出名称 | 数据类型 | 描述 |
|---------|----------|------|
| `count` | INT | 找到的匹配文件总数。 |
## 功能说明
- **格式过滤**:根据选择的类型统计文件:
- **图像 (Image)**:`.png`, `.jpg`, `.jpeg`, `.bmp`, `.tiff`, `.webp`
- **视频 (Video)**:`.webm`, `.mp4`, `.mkv`, `.gif`, `.mov`, `.avi`
- **用途**:适用于遍历数据集或在处理前验证文件夹内容。