/ Модель

Характеристики

Лицензия
Своя лицензия
Библиотека
onnx
Опубликована
17 ноя 2026

hackathon-team8-chroma-ae

Эмбеддинги изображенийИзображение → embedding3 профессии

Сверточный автоэнкодер кодирует фотографии мест в 64-мерные векторы для поиска похожих сцен по цвету и освещению.

0скачиваний за 30 дней0лайковвеса обновлены18 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Chroma autoencoder conv-64 — сверточный автоэнкодер команды Team 8 проекта AI Methods hackathon при IAAC MaAI в Барселоне. Модель преобразует RGB-фотографию места, уменьшенную до 64 × 64 пикселей, в L2-нормированный вектор из 64 чисел и также восстанавливает изображение. Веса опубликованы в формате ONNX; архитектура содержит около 1,9 млн параметров.

Модель предназначена для поиска визуально похожих сцен по косинусному сходству в библиотеке из 731 размеченной сцены. В приложении Chroma найденные сцены помогают определить характеристики места, освещения и сезона для формирования музыкальной композиции. Модель обучена на 36 500 фотографиях набора Places365; обучение не использует метки мест. Лицензия указана как other, а README ограничивает использование образовательными и некоммерческими целями и отмечает условия лицензии исходных фотографий Places365.

В тестировании точность совпадения места среди пяти ближайших сцен составила 0,352, что выше случайного уровня 0,218, однако большинство соседей всё равно могут относиться к другому месту: представление сильно учитывает освещение и цвет. Разрешение 64 × 64 теряет мелкие детали; обучающие данные и библиотека слабо покрывают некоторые типы сцен, включая интерьерные, ночные и золотой час.

Сценарии применения

  • поиск похожих фотографий мест по визуальному сходству
  • получение векторного представления RGB-фотографии для поиска ближайших сцен
  • поиск сцен со схожим освещением и цветовой палитрой
  • подбор размеченных сцен места для мультимедийного приложения Chroma

Ограничения

Точность совпадения места среди пяти ближайших сцен невысока: модель часто группирует изображения по цвету и освещению, а не по месту. Входное разрешение 64 × 64 теряет мелкие детали; редкие ночные и интерьерные сцены представлены слабее.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Chroma autoencoder (conv-64)

Team 8 · AI Methods hackathon, IAAC MaAI, Barcelona · November 2026 Code: github.com/iaac-maai/hackathon-team8-chroma (folder 01_autoencoder/)

A small convolutional autoencoder that turns a photo of a place into 64 numbers (its latent vector). Photos that look alike get close vectors. In Chroma, a user takes a photo of a place; the app finds the most similar scenes in a labelled library and turns their place, light and colours into a short piece of music.

What it does and for which use

  • Input: an RGB photo, resized to 64 × 64, pixels scaled to 0–1, shape (N, 3, 64, 64).
  • Outputs: reconstruction (N, 3, 64, 64) and latent (N, 64), L2-normalised.
  • Use: similarity search. Cosine similarity between a photo's latent and the 731 library vectors in library_latent.npy; library.csv holds the labels of each library scene (place, time of day, season, colour values, palette, music values). The library contains no photos.

Data

TrainingPlaces365 validation set (Zhou et al., 2017): 36,500 photos, 365 scene types, split 80 / 10 / 10 (seed 8)
Library731 scenes of six places (market, street, beach, mountains, metro, airport) from the same set, after removing close-ups of people, animals and objects
LicencePlaces365 photos are for non-commercial research and teaching and belong to their owners. They are not redistributed here; the figures show small 64 px examples for documentation. This model is for non-commercial, educational use.

Architecture and preprocessing

Encoder4 × [Conv 4×4, stride 2 → BatchNorm → LeakyReLU 0.1], channels 32 / 64 / 128 / 256 (64 → 4 px), then Linear 4096 → 64
DecoderLinear 64 → 4096, 3 × [ConvTranspose 4×4, stride 2 → BatchNorm → LeakyReLU], ConvTranspose → 3 channels, Sigmoid
Parameters1.9 M · ONNX file 7.6 MB
PreprocessingRGB, resize to 64 × 64 (bilinear), divide by 255

Training and comparison of setups

MSE loss, Adam (learning rate 1e-3), batch 128, 12 epochs, laptop CPU. Same split and seed for all.

SetupLatentParametersTrain timeVal MSETest MSEPlace precision@5
A · dense-646412.7 M7 min0.01950.01930.319
B · conv-64 (this model)641.9 M20 min0.01290.01270.352
C · conv-2562563.5 M22 min0.00790.00780.349

Place precision@5: of the 5 most similar library scenes, the share with the same place as the query (79 test photos). Chance = 0.218. The model never sees a place label.

Loss curves Reconstructions

Result

  • Convolutions beat the dense model with 7 × fewer parameters (test MSE 0.0127 vs 0.0193).
  • A larger code (256) reconstructs better but does not search better, so we use the 64-number code.
  • The 5 nearest scenes share the query's place 1.6 × more often than chance.
  • The latent space encodes light and setting: bright outdoor scenes on one side, indoor and night scenes on the other, warmth changing smoothly. A sunset at the beach finds other sunsets.

Similarity search Latent map

Limits: where it fails

  • 0.35 precision means most neighbours are another place: the model groups by light and colour (a bright beach finds bright snowy mountains; old black-and-white photos find pale beaches). Chroma takes the place label from CLIP, not from this model.
  • 64 × 64 px: small details (signs, doors, people) are lost in the reconstruction.
  • Trained on Places365, photographed worldwide, not in Barcelona.
  • Indoor scenes are fewer than outdoor ones; golden-hour and night photos are rare in the library.

Where it sits in Chroma

A visitor uploads a photo; the page sends it to the model server (Gradio + ONNX Runtime on Render, code in 01_autoencoder/model_app/ of the GitHub repository). The server measures colours and gradient from the pixels, uses this model to find the 10 most similar library scenes, lets them vote on place, time and season, and returns one scene card (JSON). The music side turns the card into a 10-second piece.

User story System diagram Time order How the library is made

How to use

import json, numpy as np, onnxruntime as ort, pandas as pd
from huggingface_hub import hf_hub_download
from PIL import Image

repo = "iaac-maai/hackathon-team8-chroma-ae"
sess = ort.InferenceSession(hf_hub_download(repo, "chroma_ae.onnx"))
lib_z = np.load(hf_hub_download(repo, "library_latent.npy"))
lib = pd.read_csv(hf_hub_download(repo, "library.csv"))

img = Image.open("my_photo.jpg").convert("RGB").resize((64, 64), Image.Resampling.BILINEAR)
x = (np.asarray(img, dtype=np.float32) / 255.0).transpose(2, 0, 1)[None]   # (1, 3, 64, 64)
reconstruction, latent = sess.run(None, {"image": x})

scores = lib_z @ latent[0]                       # cosine similarity (both normalised)
top = np.argsort(-scores)[:5]
print(lib.loc[top, ["place", "time", "season", "scale"]].assign(similarity=scores[top].round(2)))

Model and figures are made by 01_autoencoder/notebook/autoencoder.ipynb in the GitHub repository.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · onnx

Нельзя запустить

Модель выложена только в формате ONNX, рантайм загружает PyTorch-веса.

Ревизия весов
af66a34

0 моделей