MCPcopy Index your code
hub / github.com/SerChirag/rs-imle

github.com/SerChirag/rs-imle @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
336 symbols 916 edges 28 files 11 documented · 3%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Rejection Sampling IMLE: Designing Priors for Better Few-Shot Image Synthesis

Accepted at European Conference on Computer Vision (ECCV) 2024

Project Site| Paper | Primary contact: Chirag Vashist

Abstract

An emerging area of research aims to learn deep generative models with limited training data. Prior generative models like GANs and diffusion models require a lot of data to perform well, and their performance degrades when they are trained on only a small amount of data. A recent technique called Implicit Maximum Likelihood Estimation (IMLE) has been adapted to the few-shot setting, achieving state-of-the-art performance. However, current IMLE-based approaches encounter challenges due to inadequate correspondence between the latent codes selected for training and those drawn during inference. This results in suboptimal test-time performance. We theoretically show a way to address this issue and propose RS-IMLE, a novel approach that changes the prior distribution used for training. This leads to substantially higher quality image generation compared to existing GAN and IMLE-based methods, as validated by comprehensive experiments conducted on nine few-shot image datasets.

ECCV 2024 Presentation

Requirements

virtualenv -p python venv
pip install -r requirements.txt
pip install -i https://test.pypi.org/simple/ dciknn-cuda==0.1.15

Datasets

The datasets can be downloaded from here

Instructions

In order to train on FFHQ, you can run the following script:

./train.sh

Citation

@inproceedings{vashist2024rejectionsamplingimledesigning,
    title = {Rejection Sampling IMLE: Designing Priors for Better Few-Shot Image Synthesis},
    author = {Chirag Vashist and Shichong Peng and Ke Li},
    booktitle = {Proceedings of the European Conference on Computer Vision (ECCV)},
    year = {2024}
}

Core symbols most depended-on inside this repo

apply
called by 28
mapping_network.py
defineProperties
called by 26
static/js/bulma-carousel.js
_classCallCheck
called by 13
static/js/bulma-carousel.js
sample_from_out
called by 10
sampler.py
get_sample_for_visualization
called by 9
visual/utils.py
const_max
called by 7
helpers/imle_helpers.py
parse_layer_string
called by 6
models.py
get_projected
called by 6
sampler.py

Shape

Function 239
Method 74
Class 23

Languages

Python58%
TypeScript42%

Modules by API surface

static/js/fontawesome.all.min.js70 symbols
static/js/bulma-carousel.js50 symbols
helpers/improved_precision_recall.py31 symbols
mapping_network.py22 symbols
helpers/utils.py18 symbols
sampler.py16 symbols
helpers/train_helpers.py16 symbols
LPNet.py16 symbols
models.py15 symbols
helpers/imle_helpers.py12 symbols
data.py11 symbols
static/js/bulma-slider.js8 symbols

For agents

$ claude mcp add rs-imle \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact