lora with multi-concept training

This commit is contained in:
Vladimir Mandic
2023-03-07 13:29:46 -05:00
parent 809b793542
commit ce2eb4e272
8 changed files with 126 additions and 106 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ async def interrogate(f):
keywords = {}
if 'caption' in res:
for term in res.caption.split(', '):
term = term.replace('(', '').replace(')', '').split(':')
term = term.replace('(', '').replace(')', '').replace('\\', '').split(':')
if len(term) < 2:
continue
keywords[term[0]] = term[1]