Flux lora portrait trainer

From awesome-genmedia/skills · View interactive version

Flux lora portrait trainer is an AI agent skill from the GitHub repository awesome-genmedia/skills. Train a custom LoRA model from portrait images. Trigger: Use when the user wants to train a custom LoRA, or requests 'train lora', 'flux portrait trainer', 'custom lora training', or 'train model on my photos'.

How to use this skill

Skill file

Flux Lora | Portrait Trainer

Train a custom LoRA model from a set of portrait images. Upload a ZIP archive of images and configure training parameters to create a personalized LoRA weight file.

Quick Start

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "flux-lora-portrait-trainer",
    "version": "0.0.1",
    "input": {
      "images_data_url": "https://example.com/portrait-images.zip",
      "trigger_phrase": "photo of sks person",
      "steps": 1000,
      "learning_rate": 0.00009,
      "create_masks": true,
      "subject_crop": true
    }
  }'

Parameters

| Parameter | Type | Default | Description |

|-----------|------|---------|-------------|

| create_masks | boolean | false | If True, masks will be created for the subject |

| data_archive_format | string | (empty) | The format of the archive. If not specified, inferred from the file |

| images_data_url | string | (empty) | ZIP archive URL containing at least 10 images of a subject |

| learning_rate | number | 0.00009 | Learning rate for training |

| multiresolution_training | boolean | true | If True, multiresolution training will be used |

| resume_from_checkpoint | string | (empty) | URL to a checkpoint to resume training from |

| steps | integer | 1000 | Number of training steps |

| subject_crop | boolean | true | If True, the subject will be cropped from the image |

| trigger_phrase | string | (empty) | Trigger phrase to use in captions. If None, no trigger word is used |

Output

Examples

Basic Portrait LoRA Training

{
  "model": "flux-lora-portrait-trainer",
  "version": "0.0.1",
  "input": {
    "images_data_url": "https://example.com/my-portraits.zip",
    "trigger_phrase": "photo of johndoe person",
    "steps": 1200,
    "learning_rate": 0.00009,
    "create_masks": true,
    "subject_crop": true,
    "multiresolution_training": true
  }
}

Resume Training from Checkpoint

{
  "model": "flux-lora-portrait-trainer",
  "version": "0.0.1",
  "input": {
    "images_data_url": "https://example.com/more-portraits.zip",
    "trigger_phrase": "photo of johndoe person",
    "steps": 500,
    "resume_from_checkpoint": "https://example.com/checkpoint-1000.safetensors"
  }
}

Related Models

Documentation

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.