Skip to content
Back to skills

Global Histogram Transfer

ASecurity

"Guides the Caffe-only Interactive Deep Colorization global

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
datadockerapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill global-histogram-transfer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Global Histogram Transfer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Global Histogram Transfer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-global-histogram-transfer/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-global-histogram-transfer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: global-histogram-transfer
description: "Guides the Caffe-only Interactive Deep Colorization global
  histogram transfer workflow, assets, APIs, and failure modes."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# global-histogram-transfer

Use this sub-skill when a task is about applying a reference image's global color histogram to a grayscale target image with Interactive Deep Colorization, explaining the global histogram notebook, or diagnosing Caffe/global model assets.

## Route first

- Read [references/workflows.md](references/workflows.md) for the distilled global histogram transfer recipe and data flow.
- Read [references/api-reference.md](references/api-reference.md) for the relevant Caffe wrapper class, method signatures, prototxt roles, and blob names.
- Read [references/troubleshooting.md](references/troubleshooting.md) when Caffe imports, global weights, blob names, reference image paths, or PyTorch expectations are confusing.
- Run [scripts/check_global_histogram_assets.py](scripts/check_global_histogram_assets.py) to check global prototxts, weight filenames, and reference-image directories without importing Caffe or downloading files.

## Boundaries

- For Caffe/PyTorch/Qt/Docker/model-download setup, route to [../setup-and-models/SKILL.md](../setup-and-models/SKILL.md).
- For local user-hint colorization, GUI operations, masks, suggested colors, or PyTorch local-hints workflows, route to [../interactive-colorization/SKILL.md](../interactive-colorization/SKILL.md).
- Do not claim this repository has a PyTorch global histogram transfer implementation. The global workflow here is Caffe-only.
- Do not treat static asset checks as proof of Caffe execution; PyCaffe and downloaded weights must be available before running the native workflow.

## Critical facts

- The global colorization wrapper is `ColorizeImageCaffeGlobDist(Xd=256)`.
- The global colorization call is `net_forward(input_ab, input_mask, glob_dist=-1)`.
- Passing `glob_dist=-1` zeroes the global conditioning blob and runs automatic colorization.
- Passing a 313-bin `glob_dist` fills `glob_ab_313_mask` and enables global histogram conditioning.
- The global statistics notebook path uses a Caffe net created from `models/global_model/global_stats.prototxt` and `models/global_model/dummy.caffemodel`, then reads `gt_glob_ab_313_drop` from the net output.

Files in this skill

  • SKILL.md2.4 KB
  • references/api-reference.md3.1 KB
  • references/troubleshooting.md2.4 KB
  • references/workflows.md4.1 KB
  • scripts/check_global_histogram_assets.py4.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.