INNER CODE UNIT · Python
seed
OpenTexture/Paint3D · controlnet/diffusers_cnet_img2img.py:59
seed = int(time.time()) if config.seed == -1 else config.seed
generator = torch.manual_seed(int(seed))
res_image = self.pipe(config.prompt,
negative_prompt=config.negative_prompt,
image=image,
control_image=control_img,
ip_adapter_image=ip_adapter_image,
height=h,
width=w,
num_images_per_prompt=config.num_images_per_prompt,
guidance_scale=config.guidance_scale,
num_inference_steps=config.num_inference_steps,
strength=config.denoising_strength,
generator=generator,
controlnet_conditioning_scale=conditioning_scales).images
return res_image