The Task
For this example, we are going to fine-tune Qwen-Image-Edit to be able to turn a photo of a Yeti Mug from a product catalogue into a photo of the mug being used in the wild. The input images will be the mug we want in the scene on a black background (left) and the output will be the mug in a beautiful scene (right).
Creating a Repository
Oxen.ai repositories are used to store and version your data and models. We can create a new repository by clicking the “Create New Repository” button in your Oxen.ai dashboard.
Uploading the Dataset
From your repository, you can click the “Add File” button to upload your dataset. The upload supports unpacking zip files if you want to upload a directory of images.
- Input images
- Reference images
- Prompts for the edits or changes we want to make
Formatting the Dataset
When you upload tabular data files (like CSV, JSONL, or Parquet) to Oxen.ai, they get superpowers. For example, you can mark image columns to show as thumbnails in the dataset. This lets you view images, reference images, and prompts all in one place.
image
that represents the output we want, and a column called control_image
that represents the reference image that we want to feed as input. There is a third column for the prompt
that describes the edits or changes we want to make.
The image column needs to contain the relative path to the image from the root of the repository. For example, if the image is in the images
folder, the path should be images/image_0.png
.
Kicking off the Fine-Tune
The other superpower your csv file gets is that you can kick off a fine-tune from the dataset page. Click the “Actions” button and select “Fine-Tune a Model”.
control_image
column, the “Image” column is set to image
column, and the “Prompt” column is set to prompt
column.

Advanced Parameters
Click the “Advanced Parameters” button to see the advanced parameters for the fine-tune. You can set the learning rate, batch size, number of steps, and other parameters here.
Monitoring the Fine-Tune
While the model is training, you can monitor the progress by clicking the “Samples” tab. This will show you the images that the model has generated so far.
Deploying the Model
When the model has finished training, you can deploy it to a new model by clicking the “Deploy Model” button.
Using the Playground
Click the “Open Playground” button to use the model in the playground. This allows you to prompt the model with different images and prompts to see how it performs.
Exporting the Model
All of the model weights are stored back in your repository when the fine-tune is complete. Navigate to the fine-tune info tab, and you will see a link to the model weights. This is helpful if you want to download the weights to run in ComfyUI or your own infrastructure.
