Closed aulerius closed 10 months ago
H!. This is a simple one. Maybe a typo in the code. I fixed it for myself but you may want to correct it: In here:
def img2img(self): self.history('Status: Starting img2img') me.store('img_type',inspect.stack()[0][3]) endpoint = '/sdapi/v1/img2img' if str(self.tda.par.I2icr) != '': prompt = f'{self.tda.par.I2icr}, {str(self.tda.par.I2ip)}' else: prompt = str(self.tda.par.I2ip) payload = { "init_images": [self.imagetobytes(op('null2'))], "prompt": prompt, "cfg_scale": float(self.tda.par.I2icfg), "steps": int(self.tda.par.I2iss), "width": int(self.tda.par.I2iw), "height": int(self.tda.par.I2ih), "seed": int(self.tda.par.T2isd) if self.tda.par.Srandomseed == False else self.randomseed(), "negative_prompt": str(self.tda.par.I2inp), "sampler_index": str(self.tda.par.I2ismpl), "denoising_strength": float(self.tda.par.I2ids), "save_images": bool(self.tda.par.Ssave) }
fixed
H!. This is a simple one. Maybe a typo in the code. I fixed it for myself but you may want to correct it: In here: