Skip to content

Commit

Permalink
[AI Tagger] Minor fix (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
skier233 authored Aug 30, 2024
1 parent 97999c1 commit 1af9045
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 7 additions & 4 deletions plugins/AITagger/ai_tagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,13 @@ async def __tag_images(images):
finally:
increment_progress()
for temp_file in temp_files:
if os.path.isdir(temp_file):
shutil.rmtree(temp_file)
else:
os.remove(temp_file)
try:
if os.path.isdir(temp_file):
shutil.rmtree(temp_file)
else:
os.remove(temp_file)
except Exception as e:
log.debug(f"Failed to remove temp file {temp_file}: {e}")

# ----------------- Scene Processing -----------------

Expand Down
3 changes: 2 additions & 1 deletion plugins/AITagger/tag_mappings.csv
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Vibrating,Vibrating_AI,10,6,20s,0.5
Ass,Ass_AI,-1,6,20s,0.5
Asshole,Asshole_AI,-1,6,20s,0.5
Anal Gape,Anal Gape_AI,10,6,20s,0.5
Balls,Balls_AI,-1,6,20s,0.5
Boobs,Boobs_AI,-1,6,20s,0.5
Cum,Cum_AI,10,6,20s,0.5
Dick,Dick_AI,-1,6,20s,0.5
Expand All @@ -53,4 +54,4 @@ Pussy,Pussy_AI,-1,6,20s,0.5
Pussy Gape,Pussy Gape_AI,10,6,20s,0.5
Spit,Spit_AI,10,6,20s,0.5
Oiled,Oiled_AI,10,6,20s,0.5
Wet (Water),Wet (Water)_AI,10,6,20s,0.5
Wet (Water),Wet (Water)_AI,10,6,20s,0.5

0 comments on commit 1af9045

Please sign in to comment.