Update utils.py

Fix image resolution for windows
This commit is contained in:
Souyama
2024-11-03 18:16:45 +05:30
committed by GitHub
parent 5b6e00bfa6
commit 4c1af63d0d

View File

@@ -137,6 +137,7 @@ def file_list_to_name_dict(files: list[str]):
file_dict: dict[str, str] = {}
for file in files:
filename = os.path.splitext(file)[0]
filename = filename.replace(os.path.sep, "/")
file_dict[filename] = file
return file_dict