kliyer commited on
Commit
03950b5
·
verified ·
1 Parent(s): 228fa83

Add model card

Browse files
Files changed (1) hide show
  1. README.md +80 -0
README.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ pipeline_tag: image-to-image
5
+ tags:
6
+ - image-generation
7
+ - visual-concept-learning
8
+ - set-learning
9
+ - rectified-flow
10
+ - computer-vision
11
+ - pytorch
12
+ - torch-hub
13
+ ---
14
+
15
+ # VICIS — Show Me Examples: Inferring Visual Concepts from Image Sets
16
+
17
+ [![Paper](https://img.shields.io/badge/arXiv-2607.02402-b31b1b)](https://arxiv.org/abs/2607.02402)
18
+ [![GitHub](https://img.shields.io/badge/GitHub-Code-black)](https://github.com/CompVis/set-learner)
19
+ [![Venue](https://img.shields.io/badge/ECCV-2026-green)](https://arxiv.org/abs/2607.02402)
20
+
21
+ VICIS infers a visual concept directly from a set of example images and applies it to a query image. It does not require a text description: four context images define the concept, while one query image determines how that concept should be instantiated.
22
+
23
+ ## Paper
24
+
25
+ VICIS was introduced in the ECCV 2026 paper **Show Me Examples: Inferring Visual Concepts from Image Sets** by Nick Stracke, Kolja Bauer, Stefan Andreas Baumann, Miguel Angel Bautista, Josh Susskind, and Björn Ommer.
26
+
27
+ The model learns normalized concept directions from a context set, projects the DINOv2 representation of a query onto those directions, and conditions a latent rectified-flow transformer on the resulting query-specific concept embedding. It was trained at 256 × 256 resolution using the `extended_v1` ImageNet/WordNet hierarchy.
28
+
29
+ ## Usage
30
+
31
+ Install the [repository requirements](https://github.com/CompVis/set-learner/blob/main/requirements.txt), then load the complete pretrained model with PyTorch Hub:
32
+
33
+ ```python
34
+ import torch
35
+
36
+ model = torch.hub.load("CompVis/set-learner", "vicis", pretrained=True)
37
+
38
+ # Inputs are normalized to [-1, 1].
39
+ # context: [batch, 3, 4, 256, 256]
40
+ # query: [batch, 3, 256, 256]
41
+ samples, conditioning = model.generate(
42
+ context,
43
+ query,
44
+ seed=10_000,
45
+ num_samples=4,
46
+ cfg_scale=3.0,
47
+ sample_steps=50,
48
+ )
49
+ ```
50
+
51
+ The Hub entry point downloads `model.pt` from this repository, strictly loads the fixed architecture, moves it to CUDA in BF16, and returns it in evaluation mode. See the [inference CLI](https://github.com/CompVis/set-learner/blob/main/scripts/inference.py) for image preprocessing, saving individual PNGs, and producing labeled grids.
52
+
53
+ ## Model details
54
+
55
+ - Four context images and one query image per inference call.
56
+ - DINOv2 ViT-L/14-reg image encoder.
57
+ - 24-layer, width-1024 set transformer producing four 256-dimensional concept directions.
58
+ - Query projection and direction conditioning in FP32.
59
+ - 24-layer, width-1024 latent rectified-flow transformer.
60
+ - Tiny Autoencoder with `4 × 32 × 32` latents for 256 × 256 images.
61
+ - Classifier-free guidance with scale 3 and 50 integration steps by default.
62
+
63
+ ## Intended use and limitations
64
+
65
+ VICIS is a research model for studying visual concepts specified by image sets. A context set must contain a coherent shared concept; arbitrary or contradictory examples do not define a reliable target. Outputs can inherit biases and failure modes from ImageNet, DINOv2, and the generative training data. Generated images may be implausible, may fail to preserve the intended concept, and should not be treated as factual evidence or used for high-stakes decisions.
66
+
67
+ ## Checkpoint
68
+
69
+ The expected `model.pt` format is the raw 898-entry inference state dictionary. Training-resumption checkpoints contain optimizer state and are not suitable as the inference artifact.
70
+
71
+ ## Citation
72
+
73
+ ```bibtex
74
+ @inproceedings{stracke2026show,
75
+ title = {Show Me Examples: Inferring Visual Concepts from Image Sets},
76
+ author = {Stracke, Nick and Bauer, Kolja and Baumann, Stefan Andreas and Bautista, Miguel Angel and Susskind, Josh and Ommer, Björn},
77
+ booktitle = {European Conference on Computer Vision},
78
+ year = {2026}
79
+ }
80
+ ```