Fix the input validation of the Batch Loader node #37 #38

This commit is contained in:
Rhys Yang
2024-01-06 01:11:59 +08:00
parent 6cd2b3414d
commit 5241cf50b9
-13
View File
@@ -921,19 +921,6 @@ class SDBatchLoader:
):
return os.listdir(path)
@classmethod
def VALIDATE_INPUTS(
s,
path,
image_load_limit,
start_index,
):
if Path(path).is_file():
return True
if not Path(path).is_dir():
return f"Invalid directory: {path}"
return True
class SDParameterExtractor:
@classmethod