Update app.py
Browse files
app.py
CHANGED
|
@@ -1864,6 +1864,7 @@ def similarity_matching(sprites_data: dict, project_folder: str, top_k: int = 1,
|
|
| 1864 |
try:
|
| 1865 |
matched_folder_p.relative_to(sprite_base_p)
|
| 1866 |
is_sprite = True
|
|
|
|
| 1867 |
print("is_sprite---------->",is_sprite)
|
| 1868 |
except Exception:
|
| 1869 |
is_sprite = False
|
|
@@ -1895,9 +1896,12 @@ def similarity_matching(sprites_data: dict, project_folder: str, top_k: int = 1,
|
|
| 1895 |
is_backdrop = False
|
| 1896 |
try:
|
| 1897 |
matched_folder_p.relative_to(backdrop_base_p)
|
|
|
|
| 1898 |
is_backdrop = True
|
|
|
|
| 1899 |
except Exception:
|
| 1900 |
is_backdrop = False
|
|
|
|
| 1901 |
|
| 1902 |
if is_backdrop and str(matched_folder_p) not in copied_backdrop_folders:
|
| 1903 |
print(f"Processing BACKDROP folder: {matched_folder_p}")
|
|
|
|
| 1864 |
try:
|
| 1865 |
matched_folder_p.relative_to(sprite_base_p)
|
| 1866 |
is_sprite = True
|
| 1867 |
+
print("matched_folder_p--------->",matched_folder_p)
|
| 1868 |
print("is_sprite---------->",is_sprite)
|
| 1869 |
except Exception:
|
| 1870 |
is_sprite = False
|
|
|
|
| 1896 |
is_backdrop = False
|
| 1897 |
try:
|
| 1898 |
matched_folder_p.relative_to(backdrop_base_p)
|
| 1899 |
+
print("matched_folder_p--------->",matched_folder_p)
|
| 1900 |
is_backdrop = True
|
| 1901 |
+
print("is_backdrop---------->",is_backdrop)
|
| 1902 |
except Exception:
|
| 1903 |
is_backdrop = False
|
| 1904 |
+
print("is_backdrop---------->",is_backdrop)
|
| 1905 |
|
| 1906 |
if is_backdrop and str(matched_folder_p) not in copied_backdrop_folders:
|
| 1907 |
print(f"Processing BACKDROP folder: {matched_folder_p}")
|