# Materials & fabrics

## Introduction

We know how frustrating and time-consuming it can be when your designs don’t accurately represent the expected materials. With Fermat, you can **train the AI on specific materials**, ensuring your designs accurately reflect silk, denim, leather, or any custom textile. This article will walk you through the process of using visual material references to craft designs that perfectly align with your chosen material.

## Step by step guide

To train an AI using Custom Styles that perfectly aligns with your chosen material, follow these steps:

### Create a Custom Style

{% stepper %}
{% step %}

### Accessing the Custom Styles Panel

1. Open Fermat and navigate to the *Custom Styles* section.
2. Click on *"New Style"* to begin the training process.

<figure><img src="https://2419988688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVR1BDoqmJbjltMHKIdui%2Fuploads%2F3MU7t70WEHMeOqUZKScd%2FCustom%20styles.jpg?alt=media&#x26;token=c44487ef-fbc9-46f7-a515-56ec45b6e4ae" alt=""><figcaption><p>Custom Styles dashboard</p></figcaption></figure>
{% endstep %}

{% step %}

### Upload visual references

Upload at least 5 close-up images that represent your material.

{% hint style="warning" %}
Make sure your visual references are in high quality. Avoid pixelated or low-resolution images that could affect the accuracy of the AI-generated designs. If your dataset contains less than 5 images, you can upload the same images again to meet the required amount.
{% endhint %}

<figure><img src="https://2419988688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVR1BDoqmJbjltMHKIdui%2Fuploads%2FDgGWWayN6ME2ocsf3oTd%2Fdataset.jpg?alt=media&#x26;token=3ef1c020-18b2-4b99-a160-b48d3b8b23a2" alt=""><figcaption><p>Uploading visual references</p></figcaption></figure>

To delete a specific visual reference, place the cursor over the image and press the **"***Delete***"** button.
{% endstep %}

{% step %}

### Set your Custom Style

* Enter a name that represents the style you're training.
* Select the *"Materials & Fabrics"* option.
* Write a short description that explains about your dataset. (e.g. Close up images of 'Ribbed knit').

<figure><img src="https://2419988688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVR1BDoqmJbjltMHKIdui%2Fuploads%2FjEEv3SRtDPJwfzGaQCKk%2Fset%20parameters.jpg?alt=media&#x26;token=7f9250b8-84bb-462e-9b1d-33ddecb955f2" alt=""><figcaption><p>Set the parameters</p></figcaption></figure>
{% endstep %}

{% step %}

### Train the AI

Click the "*Start training*" button. The AI will process your visual references and create a Custom Style within approximately **10 minutes**.

{% hint style="info" %}
The training time for your new Custom Style may depend on the number and size of the visual references you have uploaded.
{% endhint %}

{% embed url="<https://youtu.be/_iRpVGqxask>" %}
This video demonstrates how to train the AI to recognize and replicate specific materials.
{% endembed %}
{% endstep %}
{% endstepper %}

### Use Custom Styles

{% stepper %}
{% step %}

### Open the Custom Style

<figure><img src="https://2419988688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVR1BDoqmJbjltMHKIdui%2Fuploads%2FSrT4J4wJQUqumuCmRdhu%2Fopen%20custom%20style.jpg?alt=media&#x26;token=80a2517c-0fad-42ce-aaa2-6bf437a01137" alt=""><figcaption><p>Press the Custom Style once the AI completes its training.</p></figcaption></figure>
{% endstep %}

{% step %}

### Enter your prompt

&#x20;Provide a detailed text description of the design you want.

{% hint style="info" %}
Example: *A model wearing a light beige "Knit cotton" midi dress with a high turtleneck, standing in a minimalist environment. She has a natural and confident look with her arms crossed over her chest. Her long hair is styled in a natural, slightly tousled look. The background is neutral and soft, emphasizing the texture of the dress and her calm expression. The lighting is gentle and natural, giving the scene a fresh, relaxed vibe.*
{% endhint %}
{% endstep %}

{% step %}

### Customize the settings

Adjust parameters such as:

* **Aspect ratio**: 1:1, 16:9, 9:16, 5:4, 4:5
* **Influence of AI on the original dataset.** This means that if the influence is 100%, AI will fully consider the dataset it was trained on.
  {% endstep %}

{% step %}

### (Optional) Upload a reference image

You can upload a reference image to restyle it using the unique DNA of your Custom Style.
{% endstep %}

{% step %}

### Generate render

Click the 'Generate' button and let the AI process your inputs. In just a few seconds, your new design will be generated with the specified material applied.

<figure><img src="https://2419988688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVR1BDoqmJbjltMHKIdui%2Fuploads%2FmWlNVWfatBD8txmwtpJW%2FCaptura%20de%20pantalla%202025-01-29%20a%20les%2017.38.10.png?alt=media&#x26;token=a2efc1a4-97db-40fe-8c2d-9a6589face5f" alt="" width="563"><figcaption><p>Generate render button</p></figcaption></figure>

{% embed url="<https://youtu.be/jG5wS96wA4o>" %}
Watch this video to learn how to create a photoshoot with your trained Custom Style.
{% endembed %}
{% endstep %}
{% endstepper %}

### View dataset

You can view your Custom Style's dataset by opening its own menu.

<figure><img src="https://2419988688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVR1BDoqmJbjltMHKIdui%2Fuploads%2F28973SHT5BHOBVedCINb%2FSee%20detaset.gif?alt=media&#x26;token=738457c0-a6cf-4d1d-b9c1-6e13e0b54945" alt=""><figcaption><p>See dataset</p></figcaption></figure>

### Download dataset

Can’t remember what your Custom Style images were trained on? You can now download them all with a single ‘Download’ button.

<figure><img src="https://2419988688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVR1BDoqmJbjltMHKIdui%2Fuploads%2FwHSlRoNpODqpfKF33Q9s%2Fdownload%20button.gif?alt=media&#x26;token=b75c4b06-b39e-40f3-a33b-14078d022f7f" alt=""><figcaption></figcaption></figure>

### Delete Custom style

You can delete your Custom Style by selecting the *"Delete"* option in its own menu.

<figure><img src="https://2419988688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVR1BDoqmJbjltMHKIdui%2Fuploads%2FfSivJhGDJB0geMnERNoZ%2Fdelete%20style.jpg?alt=media&#x26;token=04b24278-77d9-4b83-b3a3-7dcdc9b8b98c" alt=""><figcaption><p>Delete Custom Style</p></figcaption></figure>

## Examples

Here are some examples of how designers use Custom Styles in Fermat:

<figure><img src="https://2419988688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVR1BDoqmJbjltMHKIdui%2Fuploads%2FserNoNKNV2CC37ORTOgn%2Fexample%201.jpg?alt=media&#x26;token=e6cbe48d-f8cd-4389-9c20-b6fe35c1dcac" alt="" width="563"><figcaption></figcaption></figure>

*A stylish male model in a neutral beige "knit cotton" sweater with a high collar, standing confidently against a soft, minimalistic cream background. The model has a confident expression with his arms crossed, exuding a casual, yet refined look. The lighting is soft, highlighting the texture of the sweater and the subtle details of the stripes. The image should convey sophistication and elegance with a modern, fashion-forward vibe.*

<figure><img src="https://2419988688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVR1BDoqmJbjltMHKIdui%2Fuploads%2Fbzhd1urWH500fMi7oITN%2Fexample%202.jpg?alt=media&#x26;token=2bcfdf5a-2e35-4d0a-9cdf-b7ecbf7476d1" alt="" width="563"><figcaption></figcaption></figure>

*A female model wearing a bright fuchsia sleeveless "knit cotton" sweater with a high neck, standing in a minimalist setting. She has natural, effortless beauty with a serene expression, complemented by simple gold hoop earrings. The image has a soft, neutral background, highlighting her and the texture of the sweater. The lighting is warm and soft, adding to the elegant and modern vibe of the image.*

<figure><img src="https://2419988688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVR1BDoqmJbjltMHKIdui%2Fuploads%2Fz6qPEeGz5FRu7H4pGkue%2Fexample%203.jpg?alt=media&#x26;token=6c47195c-3228-4ee8-bcf6-19abf003af52" alt="" width="563"><figcaption></figcaption></figure>

*A female model wearing a light grey "knit cotton" midi dress with a high turtleneck, standing in a minimalist environment. She has a natural and confident look with her arms crossed over her chest. Her long hair is styled in a natural, slightly tousled look. The background is neutral and soft, emphasizing the texture of the dress and her calm expression. The lighting is gentle and natural, giving the scene a fresh, relaxed vibe*

## Explore other type of Custom Styles

{% content-ref url="moodboards" %}
[moodboards](https://docs.fermat.app/custom-styles/moodboards)
{% endcontent-ref %}

{% content-ref url="objects" %}
[objects](https://docs.fermat.app/custom-styles/objects)
{% endcontent-ref %}

{% content-ref url="broken-reference" %}
[Broken link](https://docs.fermat.app/custom-styles/broken-reference)
{% endcontent-ref %}

{% content-ref url="faces-and-people" %}
[faces-and-people](https://docs.fermat.app/custom-styles/faces-and-people)
{% endcontent-ref %}
