Skip to content
/ AISP Public
forked from mv-lab/AISP

AI Image Signal Processing and Computational Photography. Official library for NTIRE (CVPR) and AIM (ICCV/ECCV) Challenges. You will find Learned ISPs, RAW Restoration-Upsampling-Reconstruction, Image Enhancement, Bokeh rendering and more!

Notifications You must be signed in to change notification settings

JasperTse/AISP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAW Image Super-Resolution and Restoration Utils

You can use these functions to add noise, blur, and downsample RAW images. See the demo in generate_lq.ipynb. You can find datasets at: https://huggingface.co/datasets/marcosv/rawir , and more tips and samples!

This code is designed for the NTIRE Challenges:

This code was used in our papers:


The RAWIR Dataset

This dataset includes images different smartphones: iPhoneX, SamsungS9, Samsung21, Google Pixel 7-9, Oppo vivo x90.

How are the RAW images?

  • All the RAW images in this dataset have been standarized to follow a Bayer Pattern RGGB, and already white-black level corrected.

  • Each RAW image was split into several crops of size 512x512x4 (1024x1024x3 for the corresponding RGBs). You see the filename {raw_id}_{patch_number}.npy.

  • For each RAW image, you can find the associated metadata {raw_id}.pkl.

  • RGB images are the corresponding captures from the phone i.e., the phone imaging pipeline (ISP) output. The images are saved as lossless PNG 8bits.

  • Scenes include indoor/outdoor, day/night, different ISO levels, different shutter speed levels.

  • How can I load these RAW images?

import numpy as np
raw = np.load("raw.npy")
max_val = 2**12 -1
raw = (raw / max_val).astype(np.float32)
  • How do we save them?
import numpy as np
max_val = 2**12 -1
raw = (raw * max_val).astype(np.uint16)
np.save(os.path.join(SAVE_PATH, f"raw.npy"), raw_patch)

About

AI Image Signal Processing and Computational Photography. Official library for NTIRE (CVPR) and AIM (ICCV/ECCV) Challenges. You will find Learned ISPs, RAW Restoration-Upsampling-Reconstruction, Image Enhancement, Bokeh rendering and more!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 95.7%
  • Python 4.3%