CAR
Content adaptive resampler for image downscaling
Install / Use
/learn @sunwj/CARREADME
CAR-pytorch
Pytorch implementation of paper "Learned Image Downscaling for Upscaling using Content Adaptive Resampler"

Installation
# get CAR-pytorch source
git clone https://github.com/sunwj/CAR.git
cd CAR
# compile the code of the resampler
cd adaptive_gridsampler
python3 setup.py build_ext --inplace
Python requirements
Currently, the code only supports python3 and machine with NVIDIA GPU (and the CUDA development toolkit) installed
- numpy
- scipy
- pytorch (== 1.3.1)
- Pillow
- tqdm
Pre-trained models
You can download the pre-trained models for 2x and 4x downscaling and super-resolution from here.
Inference
python3 run.py --scale 4 --img_dir path_to_images --model_dir path_to_pretrained_models \
--output_dir path_to_output
Sample results

You can download HR images of benchmark datasets, i.e., the Set5, Set14, B100 and Urban100 from here.
If you find our work useful in your research or publication, please cite our work:
Wanjie Sun, Zhenzhong Chen. "Learned Image Downscaling for Upscaling using Content Adaptive Resampler". arXiv preprint arXiv:1907.12904, 2019.
@article{sun2020learned,
title={Learned image downscaling for upscaling using content adaptive resampler},
author={Sun, Wanjie and Chen, Zhenzhong},
journal={IEEE Transactions on Image Processing},
volume={29},
pages={4027--4040},
year={2020},
publisher={IEEE}
}
Acknowlegements
EDSR code is provided by thstkdgus35/EDSR-PyTorch.
Related Skills
docs-writer
99.5k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
340.5kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
ddd
Guía de Principios DDD para el Proyecto > 📚 Documento Complementario : Este documento define los principios y reglas de DDD. Para ver templates de código, ejemplos detallados y guías paso
arscontexta
2.9kClaude Code plugin that generates individualized knowledge systems from conversation. You describe how you think and work, have a conversation and get a complete second brain as markdown files you own.
