/ Модель

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

Лицензия
Своя лицензия
Базовая модель
FLUX.1-Fill-dev
Библиотека
diffusers
Опубликована
17 окт 2026

Rescale

Преобразование изображенийИзображение, текст → изображение3 профессии

Rescale — исследовательский чекпойнт GenScale для коррекции относительного масштаба объектов при генерации и редактировании изображений.

35скачиваний за 30 дней0лайковвеса обновлены17 окт 2026

Бенчмарки

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

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

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

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

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

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

Rescale — опубликованный контрольный чекпойнт GenScale, исследовательского проекта Lingxiao Li, Max Whitton, Ledell Wu и Boqing Gong по коррекции относительного масштаба объектов при генерации и редактировании изображений. Репозиторий содержит компоненты для пользовательского кода инференса, а не готовый автономный конвейер Diffusers: BF16 LoRA ранга 256 и depth ControlNet. В метаданных указаны связи с FLUX.1-Fill-dev, FLUX.1-dev-ControlNet-Depth и Insert-Anything; происхождение классифицировано как слияние.

Модель предназначена для исследований и редактирования изображений с коррекцией относительного масштаба объектов. Конвейер использует сегментацию, оценку глубины и априорные сведения о физических размерах; может также применять планы, полученные через API. Для работы нужны специальный код GenScale и отдельные компоненты SAM 2 и Depth Anything V2. Лицензия указана как other, поэтому условия использования следует проверять в репозитории и коде проекта.

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

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

  • коррекция относительного размера объекта на изображении
  • редактирование изображения с учётом глубины сцены
  • исследование методов масштабирования объектов в генеративных изображениях

Ограничения

Это набор компонентов для специального кода GenScale, а не автономный конвейер; для работы требуются дополнительные компоненты сегментации и оценки глубины. Проверка релиза не включала генерацию изображений на GPU и не подтверждала исторические результаты; результат может менять идентичность объектов, композицию и визуальное качество и не служит физическим измерением.

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

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

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

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

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

Открыть на Hugging Face

Rescale: GenScale scale-correction checkpoint

Released inference components for GenScale: A Benchmark for Relative Object Scale in Image Generation and Editing, by Lingxiao Li, Max Whitton, Ledell Wu, and Boqing Gong.

Code · Project page · Benchmark · Paper

Contents

This is the 499000 checkpoint (the retained checkpoint directory identifier), selected by the public inference wrapper and the research ablation wrapper. It contains about 5.04 GB of inference parameters:

FilePurpose
pytorch_lora_weights.safetensorsBF16 rank-256 LoRA: 686 tensors across 343 modules
controlnet/config.jsonDepth ControlNet architecture, 4 double blocks and 1 single block
controlnet/diffusion_pytorch_model.safetensorsBF16 ControlNet: 170 tensors
hf_latent_inject.ptBF16 high-frequency projection, weight shape 3072×64
rescale_adapter_config.jsonFull target-module list and LoRA rank/alpha
base_lora_config.jsonPinned upstream Insert-Anything initialization and checksum
checkpoint_manifest.jsonProvenance, file sizes, and SHA-256 hashes
VALIDATION.jsonCPU and architecture-validation scope

The original tensor-file bytes are preserved. Only the nonfunctional local _name_or_path field was removed from the public ControlNet configuration. This repository provides components for the custom GenScale inference code, rather than a complete standalone Diffusers pipeline. Optimizer state and training data are not included.

Download and run

Clone the code repository and follow its dependency instructions, including the separate SAM 2 and Depth Anything V2 setup. From the code repository root:

python -m pip install -r requirements-eval.txt
python scripts/download_rescale.py

The downloader writes weights/499000 and checks the inference files and initialization configuration against the manifest. To download manually:

from huggingface_hub import snapshot_download
snapshot_download("lingxiao2049/Rescale", local_dir="weights/499000")

For reproducible use, supply an immutable model commit SHA with the downloader's --revision option or snapshot_download(..., revision=...).

The full pipeline additionally requires upstream black-forest-labs/FLUX.1-Fill-dev and black-forest-labs/FLUX.1-Redux-dev, SAM 2, Depth Anything V2, adequate GPU memory, and GOOGLE_API_KEY for API-assisted stages. Obtain upstream checkpoints under their own access and license terms.

The retained training launcher initializes the base with WensongSong/Insert-Anything. The updated inference code follows that declared sequence: download the upstream 1.85 GB LoRA at the revision/hash in base_lora_config.json, verify it, fuse it into the Fill transformer, unload its adapter wrappers, then attach the Rescale adapter. The upstream LoRA is fetched from its original public repository and is not mirrored here. Per-run immutable training arguments were not retained, so this initialization follows the retained launcher's declared default. Set INSERTANYTHING_BASE_LORA_PATH to an already downloaded copy of the exact file, or to none only when intentionally using an already merged/custom base.

With those dependencies configured:

IMAGE_PATH=/path/to/input.png \
FEEDBACK_JSON_PATH=/path/to/localized_judge_feedback.json \
bash inference_size_correction.sh

The main Rescale evaluation used localized error feedback. The checkpoint alone is not an autonomous error-discovery system. The code's optional FLUX-Kontext removal backend additionally needs a Diffusers version exposing FluxKontextPipeline; the default Gemini backend uses the pinned environment.

Validation and numerical scope

The release verifies tensor-file hashes, complete safetensors storage, all 686 LoRA names/shapes against the full Flux transformer architecture, all 170 ControlNet names/shapes against its architecture, and the finite 3072×64 high-frequency projection. The pinned upstream initialization has the same 686 adapter tensor names/shapes. CPU tests confirm that actual tensor values load into attention, input, normalization, and feed-forward modules in a small Flux model, that the upstream-style adapter is fused before attaching Rescale, and that missing pairs, incompatible shapes, or wrong initialization hashes fail. The full architecture checks use the meta device and do not allocate or run the complete base model.

During packaging, the older public loader's attention-only configuration and base_model.model. key conversion were corrected. The updated loader loads every saved adapter tensor and fails on mismatches. Historical paper outputs have not been regenerated with this corrected loader. This release establishes checkpoint compatibility, rather than revalidating all historical numerical results; it does not establish which historical runs used the older public loader. GPU image generation was not rerun for release validation. Use the current code repository when loading these weights.

Intended use and limitations

Use these components for research into relative object scale correction and image editing. The correction pipeline uses segmentation, depth estimates, physical-scale priors, and optional API-generated plans; its results can inherit errors or biases from those components and may alter identities, composition, or visual quality. A scale-corrected output is not a physical measurement. The checkpoint directory identifier does not establish training duration, compute cost, or a complete training recipe.

License and attribution

Weights: FLUX.1 [dev] Non-Commercial License. See LICENSE.md and NOTICE. Rights to use the upstream FLUX models and derivatives are granted directly by Black Forest Labs under that license. This release modifies FLUX-based components through the Rescale adapter and ControlNet checkpoint; it does not grant a new commercial license to the upstream models.

The implementation builds on Insert-Anything and Shakker-Labs/FLUX.1-dev-ControlNet-Depth. Upstream source revisions are recorded in UPSTREAM_SOURCES.json. The MIT notice for Insert-Anything is preserved under third_party/. GenScale code is separately MIT licensed; the benchmark dataset is separately CC BY 4.0. Those licenses do not replace the checkpoint's upstream model terms.

Please cite CITATION.bib.

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

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

GPU в ailist

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

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

Модели «картинка → картинка» пока не запускаются.

Ревизия весов
934af75

0 моделей