From 8190f910e93b57f325356290e5342a03df0a2279 Mon Sep 17 00:00:00 2001 From: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com> Date: Sat, 18 Feb 2023 16:29:34 +0900 Subject: [PATCH] fix change in behavior (#39) --- scripts/dataset_tag_editor/dataset_tag_editor.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/dataset_tag_editor/dataset_tag_editor.py b/scripts/dataset_tag_editor/dataset_tag_editor.py index 66e2239..0f893a1 100644 --- a/scripts/dataset_tag_editor/dataset_tag_editor.py +++ b/scripts/dataset_tag_editor/dataset_tag_editor.py @@ -439,9 +439,6 @@ class DatasetTagEditor: del self.images[img_path] os.replace(img_path, dst_path) self.dataset.remove_by_path(img_path) - img = Image.open(dst_path) - img.already_saved_as = dst_path - self.images[dst_path] = img print(f'[tag-editor] Moved {img_path} -> {dst_path}') except Exception as e: print(e)