Readme
This model doesn't have a readme.
(Updated 8 months ago)
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 vetkastar/fooocus-test using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"vetkastar/fooocus-test:f5664e1314aee27aa4d8cf7de75f64c1a2eed97ed37bc4f923a74d60521169d3",
{
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 runs on Nvidia L40S GPU hardware. We don't yet have enough runs of this model to provide performance information.
This model doesn't have a readme.