SYMBOL INDEX (112 symbols across 19 files) FILE: src/colorize.py function main (line 33) | def main(): FILE: src/corrupt_image.py function tofloat (line 17) | def tofloat(img): function gaussian_noise (line 21) | def gaussian_noise(img, std=0.1): function quantize_2 (line 26) | def quantize_2(img, levels=4): function quantize (line 31) | def quantize(img, quantize_factor=55): function resize (line 43) | def resize(img, rate=4., interp='bilinear'): function sr_linear (line 46) | def sr_linear(img, rate=4.): function sr_nn (line 50) | def sr_nn(img, rate=4.): function sr_black (line 54) | def sr_black(img, rate=4): function main (line 60) | def main(args): FILE: src/denoising.py function corrupt_image (line 34) | def corrupt_image(img, down_sample_factor=4): function main (line 38) | def main(): FILE: src/external/poissonblending.py function prepare_mask (line 13) | def prepare_mask(mask): function blend (line 25) | def blend(img_target, img_source, img_mask, offset=(0, 0)): function test (line 94) | def test(): FILE: src/helper.py function loadimage (line 5) | def loadimage(filename): function loadimage_gray (line 9) | def loadimage_gray(filename): function saveimages (line 13) | def saveimages(outimages, prefix='samples', filenames=None, outdir='out'): FILE: src/imgsnr.py function psnr (line 9) | def psnr(a, b): function normalize (line 16) | def normalize(i): function main (line 20) | def main(args): FILE: src/inpaint.py function gen_mask (line 59) | def gen_mask(maskType): function loadmask (line 84) | def loadmask(filename, thresh=128): function main (line 93) | def main(): FILE: src/inpaint_test.py function loadimage (line 41) | def loadimage(filename): function saveimages (line 46) | def saveimages(outimages, prefix='samples'): function gen_mask (line 58) | def gen_mask(maskType): function loadmask (line 83) | def loadmask(filename, thresh=128): function main (line 92) | def main(): FILE: src/model.py class ModelInpaint (line 7) | class ModelInpaint(): method __init__ (line 8) | def __init__(self, modelfilename, config, method init_z (line 50) | def init_z(self): method sample (line 54) | def sample(self, z=None): method preprocess (line 61) | def preprocess(self, images, imask, useWeightedMask = True, nsize=7): method postprocess (line 101) | def postprocess(self, g_out, blend = True): method build_inpaint_graph (line 123) | def build_inpaint_graph(self): method inpaint (line 142) | def inpaint(self, image, mask, blend=True): method backprop_to_input (line 163) | def backprop_to_input(self, verbose=True): method loadpb (line 192) | def loadpb(filename, model_name='dcgan'): method imtransform (line 217) | def imtransform(img): method iminvtransform (line 222) | def iminvtransform(img): method poissonblending (line 227) | def poissonblending(img1, img2, mask): method createWeightedMask (line 232) | def createWeightedMask(mask, nsize=7): method binarizeMask (line 246) | def binarizeMask(mask, dtype=np.float32): method create3ChannelMask (line 260) | def create3ChannelMask(mask): FILE: src/model_base.py class ModelBase (line 8) | class ModelBase(object): method __init__ (line 9) | def __init__(self, modelfilename, config, method init_z (line 51) | def init_z(self): method sample (line 56) | def sample(self, z=None): method preprocess (line 64) | def preprocess(self, **kwargs): method postprocess (line 70) | def postprocess(self, g_out, **kwargs): method build_context_loss (line 76) | def build_context_loss(self): method build_input_placeholders (line 82) | def build_input_placeholders(self): method restore_image (line 86) | def restore_image(self, image, **kwargs): method build_restore_graph (line 91) | def build_restore_graph(self): method backprop_to_input (line 102) | def backprop_to_input(self, verbose=True): FILE: src/model_colorize.py class ModelColorize (line 8) | class ModelColorize(): method __init__ (line 9) | def __init__(self, modelfilename, config, method init_z (line 51) | def init_z(self): method sample (line 56) | def sample(self, z=None): method preprocess (line 63) | def preprocess(self, images): method postprocess (line 91) | def postprocess(self, g_out, blend=False): method build_colorization_graph (line 107) | def build_colorization_graph(self): method colorize (line 123) | def colorize(self, image, blend=False): method backprop_to_input (line 144) | def backprop_to_input(self, verbose=True): method loadpb (line 172) | def loadpb(filename, model_name='dcgan'): method imtransform (line 197) | def imtransform(img): method iminvtransform (line 202) | def iminvtransform(img): method poissonblending (line 207) | def poissonblending(img1, img2, mask): method colorblend (line 212) | def colorblend(img_gray, img_color): FILE: src/model_denoising.py class ModelDenoising (line 8) | class ModelDenoising(ModelBase): method preprocess (line 9) | def preprocess(self, images, mask=None): method postprocess (line 38) | def postprocess(self, g_out, blend = True): method build_input_placeholders (line 50) | def build_input_placeholders(self): method perform_corruption (line 59) | def perform_corruption(self, images): method build_context_loss (line 62) | def build_context_loss(self): method restore_image (line 71) | def restore_image(self, image, mask=None, blend=True): FILE: src/model_inpaint.py class ModelInpaint (line 7) | class ModelInpaint(ModelBase): method preprocess (line 8) | def preprocess(self, images, imask, useWeightedMask=True, nsize=15): method postprocess (line 48) | def postprocess(self, g_out, blend = True): method build_input_placeholders (line 70) | def build_input_placeholders(self): method build_context_loss (line 79) | def build_context_loss(self): method restore_image (line 88) | def restore_image(self, image, mask, blend=True): FILE: src/model_inpaint_test.py function p_standard_gaussian (line 7) | def p_standard_gaussian(z): class ModelInpaintTest (line 11) | class ModelInpaintTest(ModelInpaint): method build_restore_graph (line 14) | def build_restore_graph(self): FILE: src/model_quantize.py class ModelQuantize (line 7) | class ModelQuantize(ModelBase): method preprocess (line 8) | def preprocess(self, images, mask=None): method postprocess (line 35) | def postprocess(self, g_out, blend = True): method build_input_placeholders (line 47) | def build_input_placeholders(self): method perform_corruption (line 56) | def perform_corruption(self, images): method perform_corruption_new (line 65) | def perform_corruption_new(self, images): method build_context_loss (line 72) | def build_context_loss(self): method restore_image (line 81) | def restore_image(self, image, mask=None, blend=True): FILE: src/model_superres.py class ModelSuperres (line 7) | class ModelSuperres(ModelBase): method preprocess (line 8) | def preprocess(self, images, mask=None): method postprocess (line 35) | def postprocess(self, g_out, blend = True): method build_input_placeholders (line 47) | def build_input_placeholders(self): method perform_corruption (line 56) | def perform_corruption(self, images): method build_context_loss (line 73) | def build_context_loss(self): method restore_image (line 82) | def restore_image(self, image, mask=None, blend=True): FILE: src/quantize.py function corrupt_image (line 34) | def corrupt_image(img, quantize_factor=4): function main (line 44) | def main(): FILE: src/superres.py function corrupt_image (line 34) | def corrupt_image(img, down_sample_factor=4): function main (line 39) | def main(): FILE: src/tools.py function imtransform (line 9) | def imtransform(img): function iminvtransform (line 13) | def iminvtransform(img): function poissonblending (line 17) | def poissonblending(img1, img2, mask): function createWeightedMask (line 21) | def createWeightedMask(mask, nsize=7): function binarizeMask (line 32) | def binarizeMask(mask, dtype=np.float32): function create3ChannelMask (line 50) | def create3ChannelMask(mask): function loadpb (line 55) | def loadpb(filename, model_name='dcgan'):