fix --input file.jpg

This commit is contained in:
Qing
2024-01-31 22:10:13 +08:00
parent 1d2d39dfa0
commit 44ee0769dd
4 changed files with 35 additions and 31 deletions

View File

@@ -60,7 +60,7 @@ def save_config(
if str(config.output_dir) == ".":
config.output_dir = None
print(config)
print(config.model_dump_json(indent=4))
if config.input and not os.path.exists(config.input):
return "[Error] Input file or directory does not exist"