# Training HF transformer models on custom (not text) data

**URL:** <https://discuss.huggingface.co/t/training-hf-transformer-models-on-custom-not-text-data/41064>\
**Category:** 🤗Transformers\
**Created:** [May 26, 2023, 9:51am UTC](https://discuss.huggingface.co/t/training-hf-transformer-models-on-custom-not-text-data/41064 "2023-05-26T09:51:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Malik7115](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@Malik7115](https://discuss.huggingface.co/u/Malik7115)\
**Post date:** [May 26, 2023, 9:51am UTC](https://discuss.huggingface.co/t/training-hf-transformer-models-on-custom-not-text-data/41064/1 "2023-05-26T09:51:33Z")

</div>

Hi,  
is there a way to train data not in text form using the hf models? For example, if I want to train a transformer on some representation of images and use it to generate new images, how exactly would I accomplish this?
