fmxexpress/flux-lora-training
Public
30
runs
Run fmxexpress/flux-lora-training 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 |
|---|---|---|---|
| images |
string
|
A zip/tar file containing the images that will be used for training. File names must be their captions: a_photo_of_TOK.png, etc. Min 12 images required.
|
|
| model_name |
string
|
black-forest-labs/FLUX.1-dev
|
Model name
|
| hf_token |
string
|
HuggingFace token to use for accessing model
|
|
| steps |
integer
|
1000
Min: 10 Max: 4000 |
Number of training steps. Recommended range 500-4000
|
| learning_rate |
number
|
0.0004
|
Learning rate
|
| batch_size |
integer
|
1
|
Batch size
|
| resolution |
string
|
512,768,1024
|
Image resolutions for training
|
| lora_linear |
integer
|
16
|
LoRA linear value
|
| lora_linear_alpha |
integer
|
16
|
LoRA linear alpha value
|
| repo_id |
string
|
Enter HuggingFace repo id to upload LoRA to HF. Will return zip file if left empty.Ex: lucataco/flux-dev-lora
|
{
"type": "object",
"title": "Input",
"required": [
"images",
"hf_token"
],
"properties": {
"steps": {
"type": "integer",
"title": "Steps",
"default": 1000,
"maximum": 4000,
"minimum": 10,
"x-order": 3,
"description": "Number of training steps. Recommended range 500-4000"
},
"images": {
"type": "string",
"title": "Images",
"format": "uri",
"x-order": 0,
"description": "A zip/tar file containing the images that will be used for training. File names must be their captions: a_photo_of_TOK.png, etc. Min 12 images required."
},
"repo_id": {
"type": "string",
"title": "Repo Id",
"x-order": 9,
"description": "Enter HuggingFace repo id to upload LoRA to HF. Will return zip file if left empty.Ex: lucataco/flux-dev-lora"
},
"hf_token": {
"type": "string",
"title": "Hf Token",
"format": "password",
"x-order": 2,
"description": "HuggingFace token to use for accessing model",
"x-cog-secret": true
},
"batch_size": {
"type": "integer",
"title": "Batch Size",
"default": 1,
"x-order": 5,
"description": "Batch size"
},
"model_name": {
"type": "string",
"title": "Model Name",
"default": "black-forest-labs/FLUX.1-dev",
"x-order": 1,
"description": "Model name"
},
"resolution": {
"type": "string",
"title": "Resolution",
"default": "512,768,1024",
"x-order": 6,
"description": "Image resolutions for training"
},
"lora_linear": {
"type": "integer",
"title": "Lora Linear",
"default": 16,
"x-order": 7,
"description": "LoRA linear value"
},
"learning_rate": {
"type": "number",
"title": "Learning Rate",
"default": 0.0004,
"x-order": 4,
"description": "Learning rate"
},
"lora_linear_alpha": {
"type": "integer",
"title": "Lora Linear Alpha",
"default": 16,
"x-order": 8,
"description": "LoRA linear alpha value"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}