Flux.1 Dev OneReward
이미지 인페인팅, 아웃페인팅, 객체 제거 등 다양한 작업을 지원하며, bytedance 연구 팀이 개발했습니다
정보
'Flux.1 Dev OneReward' 워크플로는 인페인팅, 아웃페인팅, 오브젝트 제거 같은 이미지 조작 작업을 위한 다용도 도구입니다. bytedance-research 팀이 개발했으며, Flux.1 모델을 활용해 이미지의 일부를 자연스럽게 채우거나 확장합니다. 이 워크플로는 LoadImage, SaveImage, PreviewImage 등 여러 노드를 사용해 입력 및 출력 과정을 관리합니다. 핵심 기능은 cb0eaf1c-704f-477d-8893-79665db14ed1 및 b8560576-5524-4495-baa5-2cb40da12e9e 같은 노드가 담당하며, 고품질 이미지 편집에 필요한 복잡한 연산을 처리합니다. 이미지 콘텐츠를 정밀하게 제어해야 하는 크리에이티브 전문가와 사용자에게 특히 유용합니다.
제공할 항목
- 워크플로 읽는 중
ComfyUI에서 실행됩니다. 이 워크플로는 이 페이지에서 실행할 수 없습니다. 모든 항목이 로드된 Comfy Cloud에서 열거나, 자체 ComfyUI에서 사용하려면 다운로드하세요.
Cloud에서 사용해 보기워크플로 내부
노드 그래프의 읽기 전용 미리보기입니다. 노드를 편집하려면 Comfy Cloud에서 열거나 다운로드하세요.
Loading the graph
Open full-size workflow preview코드에서 이 워크플로 사용하기
가능한 경우 워크플로 그래프와 입력을 기반으로 생성되며, 그렇지 않은 경우 저장된 예시가 표시됩니다. 비용이 발생할 수 있으므로 코드를 실행하기 전에 자격 증명과 엔드포인트를 검토하세요.
What you need
- Runs on
- Comfy Cloud
- 키
- COMFY_API_KEY
유료 Cloud 요금제와 크레딧이 필요합니다.
# Python 3.10+: pip install comfy-sdk==0.4.0
import os
from comfy_sdk import Comfy
api_key = os.environ.get("COMFY_API_KEY", "").strip()
if not api_key: raise RuntimeError("Set COMFY_API_KEY")
os.environ.setdefault("COMFY_BASE_URL", "https://cloud.comfy.org")
client = Comfy(api_key=api_key)
workflow = client.workflows.from_json({
"17": {
"class_type": "LoadImage",
"inputs": {
"image": "image_flux.1_fill_dev_OneReward_input_image.png"
},
"_meta": {
"title": "Load Image"
}
},
"62": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI",
"images": [
"110:65",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"105": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"108:8",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"121": {
"class_type": "PreviewImage",
"inputs": {
"images": [
"17",
0
]
},
"_meta": {
"title": "Preview Image"
}
},
"108:100": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "removal_timestep_alpha-2-1740.safetensors",
"model": [
"108:31",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
},
"108:23": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"108:34",
0
],
"text": "Remove the girl's hat\n"
},
"_meta": {
"title": "CLIP Text Encode (Positive Prompt)"
}
},
"108:26": {
"class_type": "FluxGuidance",
"inputs": {
"conditioning": [
"108:23",
0
],
"guidance": 30
},
"_meta": {
"title": "FluxGuidance"
}
},
"108:3": {
"class_type": "KSampler",
"inputs": {
"cfg": 1,
"denoise": 1,
"latent_image": [
"108:38",
2
],
"model": [
"108:39",
0
],
"negative": [
"108:38",
1
],
"positive": [
"108:38",
0
],
"sampler_name": "euler",
"scheduler": "normal",
"seed": 1100974460616450,
"steps": 20
},
"_meta": {
"title": "KSampler"
}
},
"108:31": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "flux.1-fill-dev-OneReward-transformer_fp8.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"108:32": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "ae.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"108:34": {
"class_type": "DualCLIPLoader",
"inputs": {
"clip_name1": "clip_l.safetensors",
"clip_name2": "t5xxl_fp16.safetensors",
"device": "default",
"type": "flux"
},
"_meta": {
"title": "Load CLIP (Dual)"
}
},
"108:38": {
"class_type": "InpaintModelConditioning",
"inputs": {
"mask": [
"17",
1
],
"negative": [
"108:46",
0
],
"noise_mask": True,
"pixels": [
"17",
0
],
"positive": [
"108:26",
0
],
"vae": [
"108:32",
0
]
},
"_meta": {
"title": "InpaintModelConditioning"
}
},
"108:39": {
"class_type": "DifferentialDiffusion",
"inputs": {
"model": [
"108:100",
0
],
"strength": 1
},
"_meta": {
"title": "Differential Diffusion"
}
},
"108:46": {
"class_type": "ConditioningZeroOut",
"inputs": {
"conditioning": [
"108:23",
0
]
},
"_meta": {
"title": "Conditioning Zero Out"
}
},
"108:8": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"108:3",
0
],
"vae": [
"108:32",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"110:57": {
"class_type": "DualCLIPLoader",
"inputs": {
"clip_name1": "clip_l.safetensors",
"clip_name2": "t5xxl_fp16.safetensors",
"device": "default",
"type": "flux"
},
"_meta": {
"title": "Load CLIP (Dual)"
}
},
"110:58": {
"class_type": "KSampler",
"inputs": {
"cfg": 1,
"denoise": 1,
"latent_image": [
"110:73",
0
],
"model": [
"110:63",
0
],
"negative": [
"110:71",
1
],
"positive": [
"110:71",
0
],
"sampler_name": "euler",
"scheduler": "normal",
"seed": 325184035774450,
"steps": 20
},
"_meta": {
"title": "KSampler"
}
},
"110:59": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "ae.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"110:60": {
"class_type": "FluxGuidance",
"inputs": {
"conditioning": [
"110:74",
0
],
"guidance": 30
},
"_meta": {
"title": "FluxGuidance"
}
},
"110:61": {
"class_type": "ConditioningZeroOut",
"inputs": {
"conditioning": [
"110:74",
0
]
},
"_meta": {
"title": "Conditioning Zero Out"
}
},
"110:63": {
"class_type": "DifferentialDiffusion",
"inputs": {
"model": [
"110:64",
0
],
"strength": 1
},
"_meta": {
"title": "Differential Diffusion"
}
},
"110:64": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "flux.1-fill-dev-OneReward-transformer_fp8.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"110:65": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"110:58",
0
],
"vae": [
"110:59",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"110:71": {
"class_type": "InpaintModelConditioning",
"inputs": {
"mask": [
"110:75",
1
],
"negative": [
"110:61",
0
],
"noise_mask": False,
"pixels": [
"110:75",
0
],
"positive": [
"110:60",
0
],
"vae": [
"110:59",
0
]
},
"_meta": {
"title": "InpaintModelConditioning"
}
},
"110:73": {
"class_type": "SetLatentNoiseMask",
"inputs": {
"mask": [
"110:75",
1
],
"samples": [
"110:71",
2
]
},
"_meta": {
"title": "Set Latent Noise Mask"
}
},
"110:74": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"110:57",
0
],
"text": ""
},
"_meta": {
"title": "CLIP Text Encode (Positive Prompt)"
}
},
"110:75": {
"class_type": "ImagePadForOutpaint",
"inputs": {
"bottom": 104,
"feathering": 40,
"image": [
"17",
0
],
"left": 40,
"right": 104,
"top": 0
},
"_meta": {
"title": "Pad Image for Outpainting"
}
}
})
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)질문과 답변
Flux.1 모델은 인페인팅 및 아웃페인팅 작업에 사용되며, 이미지 영역을 자연스럽게 채우거나 확장할 수 있습니다.
아니오. 이 워크플로는 정지 이미지용으로 설계되었습니다. 비디오 편집에는 다른 도구와 모델 구성이 필요합니다.
Load Image 노드를 마우스 오른쪽 버튼으로 클릭하고 Open in 'Maskeditor'를 선택해 수정할 영역을 지정하면 됩니다.
예. 호환성과 최신 기능 및 모델 접근을 위해 ComfyUI를 업데이트하는 것을 권장합니다.
관련 워크플로
- Flux, Flux.1
FLUX.1 [Pro]:텍스트 기반 이미지 생성
- Flux.1, Flux
Flux.1 Canny 모델
- Flux.1, Flux
Flux.1 Redux 모델
- Flux.1, Flux
Flux.1 Schnell FP8
- Flux.1, Flux
FLUX.1 Schnell Full: 텍스트 기반 이미지 생성
- Flux.1, Flux
FLUX.1 개발 전용 fp8: 텍스트 기반 이미지 생성
- Flux, Flux.1
FLUX.1 개발 전용 USO 레퍼런스 이미지 생성
- Flux, Flux.1
FLUX.1 개발 전용: 텍스트 기반 이미지 생성
- Flux, Flux.1
Flux.1 깊이 Lora
- Flux.1, Flux
Flux.1 아웃페인트
- Flux, Flux.1
Flux.1 인페인팅
- Flux, Flux.1
FLUX.1: 이미지 아웃페인팅