typefile
{
"background_image": "https://replicate.delivery/pbxt/LMIL19mjUmvvvaAtQB3yLw0G6lSc5iYBj21lCJLyXDTvDOOZ/00048-%28water-colored%29%2C%20illustration%2C%20style%20of%20Jessica%20Galbreth%2C%20%28far%20view%2C%20far%20shot%2C%20rear%20view%2C%20facing%20away_1.4%29%2C%20woman%20facing%20%28tall%20f.png",
"background_prompt": "astronaut floating with magical city in background",
"denoise_strength": 0.7,
"light_mask": "https://projectsgb.s3.amazonaws.com/test_images/lightMask.png",
"light_prompt": "sunlight",
"subject_image": "https://replicate.delivery/pbxt/LMIL1QpED9befn94FOGiPLb9ufVhPbO2VtvlNhsAgxA8kuPt/astronaut.png"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_36W**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run gbieler/change-background-and-relight using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"gbieler/change-background-and-relight:adf668d3c73fedc06c49558f62f2e338ebf50ce05fd066cf3a8e8d68a2f1735c",
{
input: {
background_image: "https://replicate.delivery/pbxt/LMIL19mjUmvvvaAtQB3yLw0G6lSc5iYBj21lCJLyXDTvDOOZ/00048-%28water-colored%29%2C%20illustration%2C%20style%20of%20Jessica%20Galbreth%2C%20%28far%20view%2C%20far%20shot%2C%20rear%20view%2C%20facing%20away_1.4%29%2C%20woman%20facing%20%28tall%20f.png",
background_prompt: "astronaut floating with magical city in background",
denoise_strength: 0.7,
light_mask: "https://projectsgb.s3.amazonaws.com/test_images/lightMask.png",
light_prompt: "sunlight",
subject_image: "https://replicate.delivery/pbxt/LMIL1QpED9befn94FOGiPLb9ufVhPbO2VtvlNhsAgxA8kuPt/astronaut.png"
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_36W**********************************
This is your API token. Keep it to yourself.
import replicate
Run gbieler/change-background-and-relight using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"gbieler/change-background-and-relight:adf668d3c73fedc06c49558f62f2e338ebf50ce05fd066cf3a8e8d68a2f1735c",
input={
"background_image": "https://replicate.delivery/pbxt/LMIL19mjUmvvvaAtQB3yLw0G6lSc5iYBj21lCJLyXDTvDOOZ/00048-%28water-colored%29%2C%20illustration%2C%20style%20of%20Jessica%20Galbreth%2C%20%28far%20view%2C%20far%20shot%2C%20rear%20view%2C%20facing%20away_1.4%29%2C%20woman%20facing%20%28tall%20f.png",
"background_prompt": "astronaut floating with magical city in background",
"denoise_strength": 0.7,
"light_mask": "https://projectsgb.s3.amazonaws.com/test_images/lightMask.png",
"light_prompt": "sunlight",
"subject_image": "https://replicate.delivery/pbxt/LMIL1QpED9befn94FOGiPLb9ufVhPbO2VtvlNhsAgxA8kuPt/astronaut.png"
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_36W**********************************
This is your API token. Keep it to yourself.
Run gbieler/change-background-and-relight using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "gbieler/change-background-and-relight:adf668d3c73fedc06c49558f62f2e338ebf50ce05fd066cf3a8e8d68a2f1735c",
"input": {
"background_image": "https://replicate.delivery/pbxt/LMIL19mjUmvvvaAtQB3yLw0G6lSc5iYBj21lCJLyXDTvDOOZ/00048-%28water-colored%29%2C%20illustration%2C%20style%20of%20Jessica%20Galbreth%2C%20%28far%20view%2C%20far%20shot%2C%20rear%20view%2C%20facing%20away_1.4%29%2C%20woman%20facing%20%28tall%20f.png",
"background_prompt": "astronaut floating with magical city in background",
"denoise_strength": 0.7,
"light_mask": "https://projectsgb.s3.amazonaws.com/test_images/lightMask.png",
"light_prompt": "sunlight",
"subject_image": "https://replicate.delivery/pbxt/LMIL1QpED9befn94FOGiPLb9ufVhPbO2VtvlNhsAgxA8kuPt/astronaut.png"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "9g6by495h9rgg0ch0fj800jsv0",
"model": "gbieler/change-background-and-relight",
"version": "adf668d3c73fedc06c49558f62f2e338ebf50ce05fd066cf3a8e8d68a2f1735c",
"input": {
"background_image": "https://replicate.delivery/pbxt/LMIL19mjUmvvvaAtQB3yLw0G6lSc5iYBj21lCJLyXDTvDOOZ/00048-%28water-colored%29%2C%20illustration%2C%20style%20of%20Jessica%20Galbreth%2C%20%28far%20view%2C%20far%20shot%2C%20rear%20view%2C%20facing%20away_1.4%29%2C%20woman%20facing%20%28tall%20f.png",
"background_prompt": "astronaut floating with magical city in background",
"denoise_strength": 0.7,
"light_mask": "https://projectsgb.s3.amazonaws.com/test_images/lightMask.png",
"light_prompt": "sunlight",
"subject_image": "https://replicate.delivery/pbxt/LMIL1QpED9befn94FOGiPLb9ufVhPbO2VtvlNhsAgxA8kuPt/astronaut.png"
},
"logs": "subject_image: /tmp/tmpo0nwg7xvastronaut.png\nbackground_image: /tmp/tmpee0l9qc_00048-(water-colored), illustration, style of Jessica Galbreth, (far view, far shot, rear view, facing away_1.4), woman facing (tall f.png\nupdating parameters with: {'background_prompt': 'astronaut floating with magical city in background', 'light_prompt': 'sunlight', 'subject_image_filename': 'subject_image.png', 'background_image_filename': 'background_image.png', 'light_mask_filename': 'light_mask.png', 'denoise_strength': 0.7, 'seed_IC_light': 975341863, 'seed_IP_adapter': 2512732489}\n{'1': {'inputs': {'image': 'subject_image.png', 'upload': 'image'}, 'class_type': 'LoadImage', '_meta': {'title': 'Place Subject Here'}}, '2': {'inputs': {'megapixels': 1.5, 'images': ['1', 0]}, 'class_type': 'ImageScaleToMegapixels', '_meta': {'title': 'Scale To Megapixels'}}, '3': {'inputs': {'image': ['2', 0]}, 'class_type': 'Image Size to Number', '_meta': {'title': 'Image Size to Number'}}, '4': {'inputs': {'number': ['3', 0]}, 'class_type': 'Number to Int', '_meta': {'title': 'Width'}}, '5': {'inputs': {'number': ['3', 1]}, 'class_type': 'Number to Int', '_meta': {'title': 'Height'}}, '8': {'inputs': {'image': 'background_image.png', 'upload': 'image'}, 'class_type': 'LoadImage', '_meta': {'title': '(Optional) Place Background here'}}, '9': {'inputs': {'image': 'light_mask.png', 'channel': 'red', 'upload': 'image'}, 'class_type': 'LoadImageMask', '_meta': {'title': '(Optional) Place Light Mask Here'}}, '13': {'inputs': {'text': 'astronaut floating with magical city in background', 'clip': ['17', 1]}, 'class_type': 'CLIPTextEncode', '_meta': {'title': 'CLIP Text Encode (Prompt)'}}, '15': {'inputs': {'text': 'sunlight', 'clip': ['88', 1]}, 'class_type': 'CLIPTextEncode', '_meta': {'title': 'CLIP Text Encode (Prompt)'}}, '17': {'inputs': {'ckpt_name': 'epicrealism_naturalSinRC1VAE.safetensors'}, 'class_type': 'CheckpointLoaderSimple', '_meta': {'title': 'Load Checkpoint'}}, '18': {'inputs': {'text': 'natural light, advertising photo of a ', 'clip': ['17', 1]}, 'class_type': 'CLIPTextEncode', '_meta': {'title': 'CLIP Text Encode (Prompt)'}}, '19': {'inputs': {'conditioning_to': ['18', 0], 'conditioning_from': ['13', 0]}, 'class_type': 'ConditioningConcat', '_meta': {'title': 'Conditioning (Concat)'}}, '20': {'inputs': {'text': 'watermark, deformed, bad anatomy', 'clip': ['17', 1]}, 'class_type': 'CLIPTextEncode', '_meta': {'title': 'CLIP Text Encode (Prompt)'}}, '21': {'inputs': {'width': ['4', 0], 'height': ['5', 0], 'x': 0, 'y': 0, 'image': ['8', 0]}, 'class_type': 'ImageCrop', '_meta': {'title': 'ImageCrop'}}, '22': {'inputs': {'boolean': True, 'on_true': ['21', 0], 'on_false': ['23', 0]}, 'class_type': 'Switch any [Crystools]', '_meta': {'title': 'Did you input a background?'}}, '23': {'inputs': {'height': ['5', 0], 'width': ['4', 0], 'interpolation_mode': 'bicubic', 'image': ['2', 0]}, 'class_type': 'JWImageResize', '_meta': {'title': 'Image Resize'}}, '24': {'inputs': {'boolean': True, 'on_true': ['75', 0], 'on_false': ['55', 0]}, 'class_type': 'Switch any [Crystools]', '_meta': {'title': 'Did you input a Light Mask?'}}, '25': {'inputs': {'model_name': 'GroundingDINO_SwinT_OGC (694MB)'}, 'class_type': 'GroundingDinoModelLoader (segment anything)', '_meta': {'title': 'GroundingDinoModelLoader (segment anything)'}}, '26': {'inputs': {'model_name': 'sam_hq_vit_h (2.57GB)'}, 'class_type': 'SAMModelLoader (segment anything)', '_meta': {'title': 'SAMModelLoader (segment anything)'}}, '27': {'inputs': {'mask': ['30', 0]}, 'class_type': 'MaskToImage', '_meta': {'title': 'Convert Mask to Image'}}, '29': {'inputs': {'prompt': 'subject', 'threshold': 0.3, 'sam_model': ['26', 0], 'grounding_dino_model': ['25', 0], 'image': ['23', 0]}, 'class_type': 'GroundingDinoSAMSegment (segment anything)', '_meta': {'title': 'GroundingDinoSAMSegment (segment anything)'}}, '30': {'inputs': {'expand': -1, 'incremental_expandrate': 0, 'tapered_corners': True, 'flip_input': False, 'blur_radius': 0.5, 'lerp_alpha': 1, 'decay_factor': 1, 'fill_holes': False, 'mask': ['29', 1]}, 'class_type': 'GrowMaskWithBlur', '_meta': {'title': 'Grow Mask With Blur'}}, '32': {'inputs': {'height': ['5', 0], 'width': ['4', 0], 'interpolation_mode': 'bicubic', 'image': ['27', 0]}, 'class_type': 'JWImageResize', '_meta': {'title': 'Image Resize'}}, '33': {'inputs': {'height': ['5', 0], 'width': ['4', 0], 'interpolation_mode': 'bicubic', 'image': ['22', 0]}, 'class_type': 'JWImageResize', '_meta': {'title': 'Image Resize'}}, '34': {'inputs': {'blend_percentage': 1, 'image_a': ['33', 0], 'image_b': ['23', 0], 'mask': ['32', 0]}, 'class_type': 'Image Blend by Mask', '_meta': {'title': 'Image Blend by Mask'}}, '38': {'inputs': {'strength': 0.85, 'conditioning': ['19', 0], 'control_net': ['39', 0], 'image': ['42', 0]}, 'class_type': 'ControlNetApply', '_meta': {'title': 'Apply ControlNet'}}, '39': {'inputs': {'control_net_name': 'control_v11f1p_sd15_depth.pth'}, 'class_type': 'ControlNetLoader', '_meta': {'title': 'Load ControlNet Model'}}, '42': {'inputs': {'ckpt_name': 'depth_anything_vitl14.pth', 'resolution': 512, 'image': ['23', 0]}, 'class_type': 'DepthAnythingPreprocessor', '_meta': {'title': 'Depth Anything'}}, '44': {'inputs': {'pixels': ['172', 0], 'vae': ['17', 2]}, 'class_type': 'VAEEncode', '_meta': {'title': 'VAE Encode'}}, '45': {'inputs': {'seed': 2512732489, 'steps': 20, 'cfg': 6, 'sampler_name': 'dpmpp_2m', 'scheduler': 'karras', 'denoise': ['46', 0], 'model': ['50', 0], 'positive': ['38', 0], 'negative': ['20', 0], 'latent_image': ['44', 0]}, 'class_type': 'KSampler', '_meta': {'title': 'KSampler'}}, '46': {'inputs': {'value': 0.7}, 'class_type': 'Float-🔬', '_meta': {'title': 'Denoise (0.1-1.0)'}}, '49': {'inputs': {'preset': 'PLUS (high strength)', 'model': ['17', 0]}, 'class_type': 'IPAdapterUnifiedLoader', '_meta': {'title': 'IPAdapter Unified Loader'}}, '50': {'inputs': {'weight': 0.3, 'weight_type': 'linear', 'combine_embeds': 'concat', 'start_at': 0, 'end_at': 1, 'embeds_scaling': 'V only', 'model': ['49', 0], 'ipadapter': ['49', 1], 'image': ['172', 0]}, 'class_type': 'IPAdapterAdvanced', '_meta': {'title': 'IPAdapter Advanced'}}, '51': {'inputs': {'samples': ['45', 0], 'vae': ['17', 2]}, 'class_type': 'VAEDecode', '_meta': {'title': 'VAE Decode'}}, '53': {'inputs': {'blend_percentage': 1, 'image_a': ['171', 0], 'image_b': ['172', 0], 'mask': ['32', 0]}, 'class_type': 'Image Blend by Mask', '_meta': {'title': 'Image Blend by Mask'}}, '55': {'inputs': {'pixels': ['78', 0], 'vae': ['88', 2]}, 'class_type': 'VAEEncode', '_meta': {'title': 'VAE Encode'}}, '56': {'inputs': {'expand': 0, 'incremental_expandrate': 0, 'tapered_corners': True, 'flip_input': False, 'blur_radius': 0, 'lerp_alpha': 1, 'decay_factor': 1, 'fill_holes': False, 'mask': ['60', 7]}, 'class_type': 'GrowMaskWithBlur', '_meta': {'title': 'Grow Mask With Blur'}}, '57': {'inputs': {'min': 0, 'max': 1.02, 'mask': ['56', 0]}, 'class_type': 'RemapMaskRange', '_meta': {'title': 'Remap Mask Range'}}, '58': {'inputs': {'mask': ['57', 0]}, 'class_type': 'MaskToImage', '_meta': {'title': 'Convert Mask to Image'}}, '60': {'inputs': {'threshold_r': ['116', 0], 'threshold_g': ['116', 0], 'threshold_b': ['116', 0], 'image': ['53', 0]}, 'class_type': 'MaskFromRGBCMYBW+', '_meta': {'title': '🔧 Mask From RGB/CMY/BW'}}, '61': {'inputs': {'mask': ['60', 7]}, 'class_type': 'MaskToImage', '_meta': {'title': 'Convert Mask to Image'}}, '71': {'inputs': {'mask': ['74', 0]}, 'class_type': 'MaskToImage', '_meta': {'title': 'Convert Mask to Image'}}, '73': {'inputs': {'min': 0, 'max': 1.06, 'mask': ['9', 0]}, 'class_type': 'RemapMaskRange', '_meta': {'title': 'Remap Mask Range'}}, '74': {'inputs': {'expand': 0, 'incremental_expandrate': 0, 'tapered_corners': True, 'flip_input': False, 'blur_radius': 30, 'lerp_alpha': 1, 'decay_factor': 1, 'fill_holes': False, 'mask': ['73', 0]}, 'class_type': 'GrowMaskWithBlur', '_meta': {'title': 'Grow Mask With Blur'}}, '75': {'inputs': {'pixels': ['81', 0], 'vae': ['88', 2]}, 'class_type': 'VAEEncode', '_meta': {'title': 'VAE Encode'}}, '77': {'inputs': {'height': ['5', 0], 'width': ['4', 0], 'interpolation_mode': 'bicubic', 'image': ['61', 0]}, 'class_type': 'JWImageResize', '_meta': {'title': 'Image Resize'}}, '78': {'inputs': {'height': ['5', 0], 'width': ['4', 0], 'interpolation_mode': 'bicubic', 'image': ['58', 0]}, 'class_type': 'JWImageResize', '_meta': {'title': 'Image Resize'}}, '81': {'inputs': {'height': ['5', 0], 'width': ['4', 0], 'interpolation_mode': 'bicubic', 'image': ['71', 0]}, 'class_type': 'JWImageResize', '_meta': {'title': 'Image Resize'}}, '85': {'inputs': {'height': ['5', 0], 'width': ['4', 0], 'interpolation_mode': 'bicubic', 'image': ['53', 0]}, 'class_type': 'JWImageResize', '_meta': {'title': 'Image Resize'}}, '86': {'inputs': {'text': 'desaturated, sepia, white', 'clip': ['88', 1]}, 'class_type': 'CLIPTextEncode', '_meta': {'title': 'CLIP Text Encode (Prompt)'}}, '87': {'inputs': {'model_path': 'iclight_sd15_fc.safetensors', 'model': ['88', 0]}, 'class_type': 'LoadAndApplyICLightUnet', '_meta': {'title': 'Load And Apply IC-Light'}}, '88': {'inputs': {'ckpt_name': 'epicrealism_naturalSinRC1VAE.safetensors'}, 'class_type': 'CheckpointLoaderSimple', '_meta': {'title': 'Load Checkpoint'}}, '91': {'inputs': {'seed': 975341863, 'steps': 30, 'cfg': ['111', 0], 'sampler_name': 'dpmpp_2m_sde', 'scheduler': 'karras', 'denoise': 1, 'model': ['87', 0], 'positive': ['92', 0], 'negative': ['92', 1], 'latent_image': ['24', 0]}, 'class_type': 'KSampler', '_meta': {'title': 'KSampler'}}, '92': {'inputs': {'multiplier': 0.156, 'positive': ['15', 0], 'negative': ['86', 0], 'vae': ['88', 2], 'foreground': ['93', 0]}, 'class_type': 'ICLightConditioning', '_meta': {'title': 'IC-Light Conditioning'}}, '93': {'inputs': {'pixels': ['85', 0], 'vae': ['88', 2]}, 'class_type': 'VAEEncode', '_meta': {'title': 'VAE Encode'}}, '94': {'inputs': {'samples': ['91', 0], 'vae': ['88', 2]}, 'class_type': 'VAEDecode', '_meta': {'title': 'VAE Decode'}}, '96': {'inputs': {'image': '$96-0', 'images': ['94', 0]}, 'class_type': 'PreviewBridge', '_meta': {'title': 'Preview Bridge (Image)'}}, '97': {'inputs': {'height': ['5', 0], 'width': ['4', 0], 'interpolation_mode': 'bicubic', 'image': ['96', 0]}, 'class_type': 'JWImageResize', '_meta': {'title': 'Image Resize'}}, '111': {'inputs': {'float': 2.4000000000000004}, 'class_type': 'Cfg Literal', '_meta': {'title': 'Relight CFG (1.2-3.5)'}}, '116': {'inputs': {'value': 0.2}, 'class_type': 'Float-🔬', '_meta': {'title': 'White Point'}}, '117': {'inputs': {'min': 0, 'max': 1, 'clamp': True, 'image': ['153', 1]}, 'class_type': 'RemapImageRange', '_meta': {'title': 'Remap Image Range'}}, '118': {'inputs': {'min': -0.2, 'max': 0.8, 'clamp': True, 'image': ['153', 1]}, 'class_type': 'RemapImageRange', '_meta': {'title': 'Remap Image Range'}}, '119': {'inputs': {'min': -0.4, 'max': 0.6, 'clamp': True, 'image': ['153', 1]}, 'class_type': 'RemapImageRange', '_meta': {'title': 'Remap Image Range'}}, '120': {'inputs': {'min': -0.6, 'max': 0.4, 'clamp': True, 'image': ['153', 1]}, 'class_type': 'RemapImageRange', '_meta': {'title': 'Remap Image Range'}}, '121': {'inputs': {'blur_type': 'guidedFilter', 'blur_size': ['125', 0], 'factor': 1, 'images': ['148', 1], 'reference': ['117', 0]}, 'class_type': 'ColorMatchImage', '_meta': {'title': 'Color Match Image'}}, '122': {'inputs': {'blur_type': 'guidedFilter', 'blur_size': ['125', 0], 'factor': 1, 'images': ['148', 1], 'reference': ['118', 0]}, 'class_type': 'ColorMatchImage', '_meta': {'title': 'Color Match Image'}}, '123': {'inputs': {'blur_type': 'guidedFilter', 'blur_size': ['125', 0], 'factor': 1, 'images': ['148', 1], 'reference': ['119', 0]}, 'class_type': 'ColorMatchImage', '_meta': {'title': 'Color Match Image'}}, '124': {'inputs': {'blur_type': 'guidedFilter', 'blur_size': ['125', 0], 'factor': 1, 'images': ['148', 1], 'reference': ['120', 0]}, 'class_type': 'ColorMatchImage', '_meta': {'title': 'Color Match Image'}}, '125': {'inputs': {'value': 24}, 'class_type': 'Int-🔬', '_meta': {'title': 'Int'}}, '135': {'inputs': {'operation': 'mean', 'images': ['136', 0]}, 'class_type': 'BatchAverageImage', '_meta': {'title': 'Batch Average Image'}}, '136': {'inputs': {'inputcount': 5, 'Update inputs': None, 'image_1': ['121', 0], 'image_2': ['122', 0], 'image_3': ['123', 0], 'image_4': ['124', 0], 'image_5': ['153', 1]}, 'class_type': 'ImageBatchMulti', '_meta': {'title': 'Image Batch Multi'}}, '137': {'inputs': {'operation': 'mean', 'images': ['138', 0]}, 'class_type': 'BatchAverageImage', '_meta': {'title': 'Batch Average Image'}}, '138': {'inputs': {'image1': ['148', 1], 'image2': ['135', 0]}, 'class_type': 'ImageBatch', '_meta': {'title': 'Batch Images'}}, '139': {'inputs': {'min': -0.15, 'max': 1.45, 'clamp': True, 'image': ['154', 0]}, 'class_type': 'RemapImageRange', '_meta': {'title': 'Remap Image Range'}}, '140': {'inputs': {'operation': 'mean', 'images': ['141', 0]}, 'class_type': 'BatchAverageImage', '_meta': {'title': 'Batch Average Image'}}, '141': {'inputs': {'image1': ['153', 1], 'image2': ['148', 1]}, 'class_type': 'ImageBatch', '_meta': {'title': 'Batch Images'}}, '144': {'inputs': {'mode': 'color', 'blend_percentage': 1, 'image_a': ['140', 0], 'image_b': ['153', 1]}, 'class_type': 'Image Blending Mode', '_meta': {'title': 'Color Blending Control'}}, '145': {'inputs': {'mode': 'hue', 'blend_percentage': 1, 'image_a': ['144', 0], 'image_b': ['153', 1]}, 'class_type': 'Image Blending Mode', '_meta': {'title': 'Hue Blending Control'}}, '146': {'inputs': {'mode': 'color', 'blend_percentage': 0.7000000000000001, 'image_a': ['137', 0], 'image_b': ['153', 1]}, 'class_type': 'Image Blending Mode', '_meta': {'title': 'Color Blending Control'}}, '147': {'inputs': {'mode': 'hue', 'blend_percentage': 0.7000000000000001, 'image_a': ['146', 0], 'image_b': ['153', 1]}, 'class_type': 'Image Blending Mode', '_meta': {'title': 'Hue Blending Control'}}, '148': {'inputs': {'blur_radius': 3, 'image': ['97', 0]}, 'class_type': 'FrequencySeparationHSV', '_meta': {'title': 'Frequency Separation HSV Node'}}, '149': {'inputs': {'images': ['153', 1]}, 'class_type': 'PreviewImage', '_meta': {'title': 'Preview Image'}}, '150': {'inputs': {'images': ['153', 0]}, 'class_type': 'PreviewImage', '_meta': {'title': 'Preview Image'}}, '153': {'inputs': {'blur_radius': 3, 'image': ['53', 0]}, 'class_type': 'FrequencySeparation', '_meta': {'title': 'Frequency Separation Node'}}, '154': {'inputs': {'high_freq': ['153', 0], 'low_freq': ['147', 0]}, 'class_type': 'FrequencyCombination', '_meta': {'title': 'Frequency Combination Node'}}, '155': {'inputs': {'high_freq': ['153', 0], 'low_freq': ['145', 0]}, 'class_type': 'FrequencyCombination', '_meta': {'title': 'Frequency Combination Node'}}, '159': {'inputs': {'min': 0, 'max': 1.1400000000000001, 'clamp': True, 'image': ['155', 0]}, 'class_type': 'RemapImageRange', '_meta': {'title': 'Remap Image Range'}}, '169': {'inputs': {'filename_prefix': 'ComfyUI', 'images': ['139', 0]}, 'class_type': 'SaveImage', '_meta': {'title': 'Save Image'}}, '170': {'inputs': {'filename_prefix': 'ComfyUI', 'images': ['159', 0]}, 'class_type': 'SaveImage', '_meta': {'title': 'Save Image'}}, '171': {'inputs': {'height': ['5', 0], 'width': ['4', 0], 'interpolation_mode': 'bicubic', 'image': ['51', 0]}, 'class_type': 'JWImageResize', '_meta': {'title': 'Image Resize'}}, '172': {'inputs': {'height': ['5', 0], 'width': ['4', 0], 'interpolation_mode': 'bicubic', 'image': ['34', 0]}, 'class_type': 'JWImageResize', '_meta': {'title': 'Image Resize'}}}\nChecking inputs\n✅ /tmp/inputs/subject_image.png\n✅ /tmp/inputs/background_image.png\n✅ /tmp/inputs/light_mask.png\n====================================\nChecking weights\nIncluding weights for IPAdapter preset: PLUS (high strength)\n✅ control_v11f1p_sd15_depth.pth exists in ComfyUI/models/controlnet\n✅ depth_anything_vitl14.pth exists in ComfyUI/custom_nodes/comfyui_controlnet_aux/ckpts/LiheYoung/Depth-Anything/checkpoints\n✅ depth_anything_vitb14.pth exists in ComfyUI/custom_nodes/comfyui_controlnet_aux/ckpts/LiheYoung/Depth-Anything/checkpoints\n✅ iclight_sd15_fc.safetensors exists in ComfyUI/models/unet\n✅ sam_hq_vit_h.pth exists in ComfyUI/models/sams\n✅ ip-adapter-plus_sdxl_vit-h.safetensors exists in ComfyUI/models/ipadapter\n✅ groundingdino_swint_ogc.pth exists in ComfyUI/models/grounding-dino\n✅ CLIP-ViT-H-14-laion2B-s32B-b79K.safetensors exists in ComfyUI/models/clip_vision\n✅ ip-adapter-plus_sd15.safetensors exists in ComfyUI/models/ipadapter\n✅ bert-base-uncased exists in ComfyUI/models/bert-base-uncased\n✅ epicrealism_naturalSinRC1VAE.safetensors exists in ComfyUI/models/checkpoints\n✅ depth_anything_vits14.pth exists in ComfyUI/custom_nodes/comfyui_controlnet_aux/ckpts/LiheYoung/Depth-Anything/checkpoints\n====================================\nRunning workflow\ngot prompt\nExecuting node 46, title: Denoise (0.1-1.0), class type: Float-🔬\nExecuting node 8, title: (Optional) Place Background here, class type: LoadImage\nExecuting node 21, title: ImageCrop, class type: ImageCrop\nExecuting node 22, title: Did you input a background?, class type: Switch any [Crystools]\nExecuting node 33, title: Image Resize, class type: JWImageResize\nExecuting node 34, title: Image Blend by Mask, class type: Image Blend by Mask\n\u001b[33mINFO: the IPAdapter reference image is not a square, CLIPImageProcessor will resize and crop it at the center. If the main focus of the picture is not in the middle the result might not be what you are expecting.\u001b[0m\nExecuting node 172, title: Image Resize, class type: JWImageResize\nExecuting node 50, title: IPAdapter Advanced, class type: IPAdapterAdvanced\nExecuting node 13, title: CLIP Text Encode (Prompt), class type: CLIPTextEncode\nExecuting node 19, title: Conditioning (Concat), class type: ConditioningConcat\nExecuting node 38, title: Apply ControlNet, class type: ControlNetApply\nExecuting node 44, title: VAE Encode, class type: VAEEncode\nExecuting node 45, title: KSampler, class type: KSampler\nRequested to load BaseModel\nLoading 1 new model\n 0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:00<00:07, 2.46it/s]\n 10%|█ | 2/20 [00:00<00:07, 2.44it/s]\n 15%|█▌ | 3/20 [00:01<00:06, 2.45it/s]\n 20%|██ | 4/20 [00:01<00:06, 2.45it/s]\n 25%|██▌ | 5/20 [00:02<00:06, 2.45it/s]\n 30%|███ | 6/20 [00:02<00:05, 2.45it/s]\n 35%|███▌ | 7/20 [00:02<00:05, 2.45it/s]\n 40%|████ | 8/20 [00:03<00:04, 2.45it/s]\n 45%|████▌ | 9/20 [00:03<00:04, 2.45it/s]\n 50%|█████ | 10/20 [00:04<00:04, 2.45it/s]\n 55%|█████▌ | 11/20 [00:04<00:03, 2.45it/s]\n 60%|██████ | 12/20 [00:04<00:03, 2.45it/s]\n 65%|██████▌ | 13/20 [00:05<00:02, 2.45it/s]\n 70%|███████ | 14/20 [00:05<00:02, 2.45it/s]\n 75%|███████▌ | 15/20 [00:06<00:02, 2.46it/s]\n 80%|████████ | 16/20 [00:06<00:01, 2.46it/s]\n 85%|████████▌ | 17/20 [00:06<00:01, 2.46it/s]\n 90%|█████████ | 18/20 [00:07<00:00, 2.46it/s]\n 95%|█████████▌| 19/20 [00:07<00:00, 2.46it/s]\n100%|██████████| 20/20 [00:08<00:00, 2.46it/s]\n100%|██████████| 20/20 [00:08<00:00, 2.45it/s]\nExecuting node 51, title: VAE Decode, class type: VAEDecode\nExecuting node 171, title: Image Resize, class type: JWImageResize\nExecuting node 53, title: Image Blend by Mask, class type: Image Blend by Mask\nExecuting node 153, title: Frequency Separation Node, class type: FrequencySeparation\nProcessing image 1/1 with shape: (1086, 1448, 3)\nExecuting node 149, title: Preview Image, class type: PreviewImage\nExecuting node 150, title: Preview Image, class type: PreviewImage\nExecuting node 15, title: CLIP Text Encode (Prompt), class type: CLIPTextEncode\nExecuting node 85, title: Image Resize, class type: JWImageResize\nExecuting node 93, title: VAE Encode, class type: VAEEncode\nExecuting node 92, title: IC-Light Conditioning, class type: ICLightConditioning\nExecuting node 60, title: 🔧 Mask From RGB/CMY/BW, class type: MaskFromRGBCMYBW+\nExecuting node 56, title: Grow Mask With Blur, class type: GrowMaskWithBlur\nExecuting node 57, title: Remap Mask Range, class type: RemapMaskRange\nExecuting node 58, title: Convert Mask to Image, class type: MaskToImage\nExecuting node 78, title: Image Resize, class type: JWImageResize\nExecuting node 55, title: VAE Encode, class type: VAEEncode\nExecuting node 24, title: Did you input a Light Mask?, class type: Switch any [Crystools]\nExecuting node 91, title: KSampler, class type: KSampler\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:08, 3.26it/s]\n 7%|▋ | 2/30 [00:00<00:08, 3.21it/s]\n 10%|█ | 3/30 [00:00<00:08, 3.19it/s]\n 13%|█▎ | 4/30 [00:01<00:08, 3.18it/s]\n 17%|█▋ | 5/30 [00:01<00:07, 3.18it/s]\n 20%|██ | 6/30 [00:01<00:07, 3.18it/s]\n 23%|██▎ | 7/30 [00:02<00:07, 3.18it/s]\n 27%|██▋ | 8/30 [00:02<00:06, 3.17it/s]\n 30%|███ | 9/30 [00:02<00:06, 3.18it/s]\n 33%|███▎ | 10/30 [00:03<00:06, 3.17it/s]\n 37%|███▋ | 11/30 [00:03<00:05, 3.18it/s]\n 40%|████ | 12/30 [00:03<00:05, 3.18it/s]\n 43%|████▎ | 13/30 [00:04<00:05, 3.18it/s]\n 47%|████▋ | 14/30 [00:04<00:05, 3.19it/s]\n 50%|█████ | 15/30 [00:04<00:04, 3.19it/s]\n 53%|█████▎ | 16/30 [00:05<00:04, 3.20it/s]\n 57%|█████▋ | 17/30 [00:05<00:04, 3.20it/s]\n 60%|██████ | 18/30 [00:05<00:03, 3.20it/s]\n 63%|██████▎ | 19/30 [00:05<00:03, 3.21it/s]\n 67%|██████▋ | 20/30 [00:06<00:03, 3.21it/s]\n 70%|███████ | 21/30 [00:06<00:02, 3.21it/s]\n 73%|███████▎ | 22/30 [00:06<00:02, 3.20it/s]\n 77%|███████▋ | 23/30 [00:07<00:02, 3.21it/s]\n 80%|████████ | 24/30 [00:07<00:01, 3.21it/s]\n 83%|████████▎ | 25/30 [00:07<00:01, 3.22it/s]\n 87%|████████▋ | 26/30 [00:08<00:01, 3.22it/s]\n 90%|█████████ | 27/30 [00:08<00:00, 3.22it/s]\n 93%|█████████▎| 28/30 [00:08<00:00, 3.22it/s]\n 97%|█████████▋| 29/30 [00:09<00:00, 3.30it/s]\n100%|██████████| 30/30 [00:09<00:00, 3.37it/s]\n100%|██████████| 30/30 [00:09<00:00, 3.22it/s]\nExecuting node 94, title: VAE Decode, class type: VAEDecode\nExecuting node 96, title: Preview Bridge (Image), class type: PreviewBridge\nExecuting node 97, title: Image Resize, class type: JWImageResize\nExecuting node 148, title: Frequency Separation HSV Node, class type: FrequencySeparationHSV\nExecuting node 141, title: Batch Images, class type: ImageBatch\nExecuting node 140, title: Batch Average Image, class type: BatchAverageImage\nExecuting node 144, title: Color Blending Control, class type: Image Blending Mode\nExecuting node 145, title: Hue Blending Control, class type: Image Blending Mode\nExecuting node 155, title: Frequency Combination Node, class type: FrequencyCombination\nExecuting node 159, title: Remap Image Range, class type: RemapImageRange\nExecuting node 170, title: Save Image, class type: SaveImage\nExecuting node 117, title: Remap Image Range, class type: RemapImageRange\nExecuting node 121, title: Color Match Image, class type: ColorMatchImage\nExecuting node 118, title: Remap Image Range, class type: RemapImageRange\nExecuting node 122, title: Color Match Image, class type: ColorMatchImage\nExecuting node 119, title: Remap Image Range, class type: RemapImageRange\nExecuting node 123, title: Color Match Image, class type: ColorMatchImage\nExecuting node 120, title: Remap Image Range, class type: RemapImageRange\nExecuting node 124, title: Color Match Image, class type: ColorMatchImage\nExecuting node 136, title: Image Batch Multi, class type: ImageBatchMulti\nExecuting node 135, title: Batch Average Image, class type: BatchAverageImage\nExecuting node 138, title: Batch Images, class type: ImageBatch\nExecuting node 137, title: Batch Average Image, class type: BatchAverageImage\nExecuting node 146, title: Color Blending Control, class type: Image Blending Mode\nExecuting node 147, title: Hue Blending Control, class type: Image Blending Mode\nExecuting node 154, title: Frequency Combination Node, class type: FrequencyCombination\nExecuting node 139, title: Remap Image Range, class type: RemapImageRange\nExecuting node 169, title: Save Image, class type: SaveImage\nPrompt executed in 24.02 seconds\noutputs: {'149': {'images': [{'filename': 'ComfyUI_temp_pfemy_00001_.png', 'subfolder': '', 'type': 'temp'}]}, '150': {'images': [{'filename': 'ComfyUI_temp_bfjxh_00001_.png', 'subfolder': '', 'type': 'temp'}]}, '96': {'images': [{'filename': 'PB-_temp_ikjoo_00001_.png', 'subfolder': 'PreviewBridge', 'type': 'temp'}]}, '170': {'images': [{'filename': 'ComfyUI_00001_.png', 'subfolder': '', 'type': 'output'}]}, '169': {'images': [{'filename': 'ComfyUI_00002_.png', 'subfolder': '', 'type': 'output'}]}}\n====================================\nComfyUI_00001_.png\nComfyUI_00002_.png",
"output": [
"https://replicate.delivery/pbxt/Qtuo2pfehppSy03Leb80b1JmxiIo7YxQnVU5mFU07d47FUbmA/ComfyUI_00001_.png",
"https://replicate.delivery/pbxt/3PrFMp4tvoKxCVJ51IhMkMV8ea5fJPop7U2dCNfVfCL4Lo2MB/ComfyUI_00002_.png"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-07-30T13:46:09.162Z",
"started_at": "2024-07-30T13:46:09.257585Z",
"completed_at": "2024-07-30T13:46:39.173436Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/9g6by495h9rgg0ch0fj800jsv0/cancel",
"get": "https://api.replicate.com/v1/predictions/9g6by495h9rgg0ch0fj800jsv0",
"web": "https://replicate.com/p/9g6by495h9rgg0ch0fj800jsv0"
},
"metrics": {
"predict_time": 29.915851144,
"total_time": 30.011436
}
}



