jagilley/controlnet-normal

Modify images using normal maps

  • Public
  • 328.5K runs

Run controlnet-normal with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
image
string
Input image
prompt
string
Prompt for the model
num_samples
string (enum)
1

Options:

1, 4

Number of samples (higher values may OOM)
image_resolution
string (enum)
512

Options:

256, 512, 768

Image resolution to be generated
ddim_steps
integer
20
Steps
scale
number
9

Min: 0.1

Max: 30

Guidance Scale
seed
integer
Seed
eta
number
0
eta (DDIM)
a_prompt
string
best quality, extremely detailed
Added Prompt
n_prompt
string
longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality
Negative Prompt
detect_resolution
integer
512

Min: 128

Max: 1024

Resolution for detection)
bg_threshold
number
0

Max: 1

Background Threshold (only applicable when model type is 'normal')

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'items': {'format': 'uri', 'type': 'string'},
 'title': 'Output',
 'type': 'array'}
Example API response
View prediction
['https://replicate.delivery/pbxt/g4Ar1CnKn0Z2K5HSLUwRAsrHCORPf70SRwXpW9eAe5bBiNeBB/output_0.png',
 'https://replicate.delivery/pbxt/t5zcnku5zfVSXiXfU3Ao9iAkfU030dm2oVTJzrWHE4UBiNeBB/output_1.png']