Stable Diffusion 的 `/sdapi/v1/img2img` 接口参数定义
Stable Diffusion 的 /sdapi/v1/img2img
接口是用于处理图像到图像的生成任务的,它接受一张输入图像和一段文本描述,然后生成一张新的图像。以下是这个接口可能的参数定义:
{
"prompt": "一只穿着蓝色外套的狗在阳光下欢快地奔跑",
"image_file": "base64编码的图像文件",
"num_inference_steps": 50,
"inference_config": {
"steps": 100,
"width": 512,
"height": 512,
"seed": 1234,
"cut_type": "random",
"cut_method": "range",
"cut_steps": 4,
"cut_inner_step": 2,
"cut_inner_ratio": 0.5,
"cut_overlap": 0.5,
"cut_batch": 4,
"cut_batch_repeat": 1,
"video": false,
"video_initial_delay": 0.5,
"video_frame_delay": 0.5,
"video_length": 10,
"video_fps": 24,
"video_quality": 50,
"video_audio_sync": false,
"video_keep_aspect_ratio": false,
"video_audio_file": "",
"video_start_at_frame": 0,
"video_end_at_frame": -1,
"video_speed": 1.0,
"video_speed_steps": 100,
"video_speed_step_size": 0.01,
"video_speed_step_mode": "linear",
"video_speed_step_random": false,
"video_speed_step_probability": 1.0,
"video_speed_step_max_jump": 0.1,
"video_speed_step_max_delay": 0.1,
"video_speed_step_max_delay_random": false,
"video_speed_step_max_delay_probability": 1.0,
"video_speed_step_max_delay_jump": 0.1,
"video_speed_step_max_delay_jump_random": false,
"video_speed_step_max_delay_jump_probability": 1.0,
"video_speed_step_max_delay_jump_max": 0.1,
"video_speed_step_max_delay_jump_max_random": false,
"video_speed_step_max_delay_jump_max_probability": 1.0,
"video_speed_step_max_delay_jump_max_max": 0.1,
"video_speed_step_max_delay_jump_max_max_random": false,
"video_speed_step_max_delay_jump_max_max_probability": 1.0,
"video_speed_step_max_delay_jump_max_max_max": 0.1,
"video_speed_step_max_delay_jump_max_max_max_random": false,
"video_speed_step_max_delay_jump_max_max_max_probability": 1.0,
"video_speed_step_max_delay_jump_max_max_max_max": 0.1,
"video_speed_step_max_delay_jump_max_max_max_max_random": false,
"video_speed_step_max_delay_jump_max_max_max_max_probability": 1.0,
"video_speed_step_max_delay_jump_max_max_max_max_max": 0.1,
"video_speed_step_max_delay_jump_max_max_max_max
评论已关闭