refactor ip adapters

This commit is contained in:
Vladimir Mandic
2024-02-10 16:04:48 -05:00
parent ef909cd003
commit e731505a5f
17 changed files with 602 additions and 496 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ all_images_by_type = {}
class Result():
def __init__(self, typ: str, fn: str, tag: str = None, requested: list = []): # noqa: B006
def __init__(self, typ: str, fn: str, tag: str = None, requested: list = []):
self.type = typ
self.input = fn
self.output = ''
@@ -262,7 +262,7 @@ def save_image(res: Result, folder: str):
return res
def file(filename: str, folder: str, tag = None, requested = []): # noqa: B006
def file(filename: str, folder: str, tag = None, requested = []):
# initialize result dict
res = Result(fn = filename, typ='unknown', tag=tag, requested = requested)
# open image