Readme
This model doesn't have a readme.
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run mlscade/fooocus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"mlscade/fooocus:d2d177eb70e517bc90576e973967d23868b40c69ad10b4c536f3de3d17db14c2",
{
input: {
prompt: "",
cn_type1: "ImagePrompt",
cn_type2: "ImagePrompt",
cn_type3: "ImagePrompt",
cn_type4: "ImagePrompt",
sharpness: 2,
image_seed: -1,
uov_method: "Disabled",
adaptive_cfg: 7,
image_number: 1,
sampler_name: "dpmpp_2m_sde_gpu",
adm_scaler_end: 0.3,
guidance_scale: 7,
inpaint_engine: "v2.6",
overwrite_step: -1,
refiner_switch: 0.5,
scheduler_name: "karras",
negative_prompt: "",
overwrite_width: -1,
inpaint_strength: 0.5,
overwrite_height: -1,
overwrite_switch: -1,
style_selections: "Fooocus V2,Fooocus Enhance,Fooocus Sharp",
loras_custom_urls: "",
uov_upscale_value: 0,
use_default_loras: true,
adm_scaler_negative: 0.8,
adm_scaler_positive: 1.5,
canny_low_threshold: 64,
controlnet_softness: 0.25,
outpaint_selections: "",
canny_high_threshold: 128,
invert_mask_checkbox: false,
outpaint_distance_top: 0,
performance_selection: "Speed",
outpaint_distance_left: 0,
aspect_ratios_selection: "1152*896",
inpaint_erode_or_dilate: 0,
outpaint_distance_right: 0,
overwrite_vary_strength: -1,
inpaint_respective_field: 1,
outpaint_distance_bottom: 0,
skipping_cn_preprocessor: false,
debugging_cn_preprocessor: false,
inpaint_additional_prompt: "",
overwrite_upscale_strength: -1,
debugging_inpaint_preprocessor: false,
inpaint_disable_initial_latent: false,
mixing_image_prompt_and_inpaint: false,
mixing_image_prompt_and_vary_upscale: false
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
No output yet! Press "Submit" to start a prediction.
This model costs approximately $0.17 to run on Replicate, or 5 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.
This model runs on Nvidia A100 (80GB) GPU hardware. Predictions typically complete within 124 seconds. The predict time for this model varies significantly based on the inputs.
This model doesn't have a readme.