107 single_line_prompt += " --seed_resize_from_w " + seed_resize_from_w 108 single_line_prompt += " --seed_resize_from_h " + seed_resize_from_h 109 try: 110 (tag, is_str) = A1111.PROMPT_MAPPING.get(key) 111 except: 112 pass 113 else: 114 if is_str: 115 single_line_prompt += " --" + tag + " " + add_quotes(str(value))
3 __copyright__ = "Copyright 2023" 4 __email__ = "receyuki@gmail.com" 5 6 import json 7 from xml.dom import minidom 8 9 import piexif 10 import piexif.helper
122 print("Fooocus format error") 123 # drawthings format 124 elif "XML:com.adobe.xmp" in self._info: 125 try: 126 data = minidom.parseString( 127 self._info.get("XML:com.adobe.xmp") 128 ) 129 data_json = json.loads( 130 data.getElementsByTagName("exif:UserComment")[0] 131 .childNodes[1]
158 ) 159 except TypeError: 160 print("empty jpeg") 161 self._status = BaseFormat.Status.FORMAT_ERROR 162 except Exception: 163 pass 164 else: 165 try: 166 # swarm format