add network image crop pipeline

This commit is contained in:
2025-01-14 13:38:17 +08:00
parent 744fb7b7b2
commit a16235a593
25 changed files with 427 additions and 2 deletions

View File

@ -243,6 +243,9 @@ class LoadImages:
path = Path(path).read_text().rsplit()
files = []
for p in sorted(path) if isinstance(path, (list, tuple)) else [path]:
if p.startswith('http'):
files.append(p)
continue
p = str(Path(p).resolve())
if '*' in p:
files.extend(sorted(glob.glob(p, recursive=True))) # glob