SYMBOL INDEX (226 symbols across 19 files) FILE: dataset_utils.py function copy_hparams (line 12) | def copy_hparams(hparams): class GeneralRawDataLoader (line 17) | class GeneralRawDataLoader(object): method __init__ (line 18) | def __init__(self, method get_test_image (line 26) | def get_test_image(self, random_cursor=True, init_cursor_on_undrawn_pi... method gen_input_images (line 35) | def gen_input_images(self, image_path): method crop_patch (line 78) | def crop_patch(self, image, center, image_size, crop_size): method gen_init_cursor_single (line 90) | def gen_init_cursor_single(self, sketch_image, init_cursor_on_undrawn_... method gen_init_cursors (line 108) | def gen_init_cursors(self, sketch_data, random_pos=True, init_cursor_o... function load_dataset_testing (line 134) | def load_dataset_testing(test_data_base_dir, test_dataset, test_img_name... class GeneralMultiObjectDataLoader (line 156) | class GeneralMultiObjectDataLoader(object): method __init__ (line 157) | def __init__(self, method preprocess_rand_data (line 182) | def preprocess_rand_data(self, stroke3): method cal_dist (line 187) | def cal_dist(self, posA, posB): method invalid_position (line 190) | def invalid_position(self, pos, obj_size, pos_list, size_list): method get_object_info (line 205) | def get_object_info(self, image_size, vary_thickness=True, try_total_t... method object_pasting (line 255) | def object_pasting(self, obj_img, canvas_img, center): method get_multi_object_image (line 279) | def get_multi_object_image(self, img_size, vary_thickness): method get_batch_from_memory (line 301) | def get_batch_from_memory(self, memory_idx, vary_thickness, fixed_imag... method get_batch_multi_res (line 323) | def get_batch_multi_res(self, loop_num, vary_thickness, random_cursor=... method gen_stroke_images (line 349) | def gen_stroke_images(self, stroke3_list, image_size, stroke_width): method crop_patch (line 361) | def crop_patch(self, image, center, image_size, crop_size): method gen_init_cursor_single (line 373) | def gen_init_cursor_single(self, sketch_image, init_cursor_on_undrawn_... method gen_init_cursors (line 391) | def gen_init_cursors(self, sketch_data, random_pos=True, init_cursor_o... function load_dataset_multi_object (line 417) | def load_dataset_multi_object(dataset_base_dir, model_params): class GeneralDataLoaderMultiObjectRough (line 473) | class GeneralDataLoaderMultiObjectRough(object): method __init__ (line 474) | def __init__(self, method rough_augmentation (line 508) | def rough_augmentation(self, raw_photo, texture_prob=0.20, noise_prob=... method image_interpolation (line 583) | def image_interpolation(self, photo, sketch, photo_prob): method get_batch_from_memory (line 588) | def get_batch_from_memory(self, memory_idx, interpolate_type, fixed_im... method select_sketch (line 625) | def select_sketch(self, image_size_rand): method get_batch_multi_res (line 638) | def get_batch_multi_res(self, loop_num, interpolate_type, random_curso... method crop_patch (line 678) | def crop_patch(self, image, center, image_size, crop_size): method gen_init_cursor_single (line 690) | def gen_init_cursor_single(self, sketch_image): method gen_init_cursors (line 703) | def gen_init_cursors(self, sketch_data, random_pos=True, init_cursor_n... function load_dataset_multi_object_rough (line 729) | def load_dataset_multi_object_rough(dataset_base_dir, model_params): class GeneralDataLoaderNormalImageLinear (line 893) | class GeneralDataLoaderNormalImageLinear(object): method __init__ (line 894) | def __init__(self, method get_batch_from_memory (line 928) | def get_batch_from_memory(self, memory_idx, interpolate_type, fixed_im... method crop_and_augment (line 948) | def crop_and_augment(self, photo, sketch, shape, crop_size, rotate_ang... method image_interpolation (line 1002) | def image_interpolation(self, photo, sketch, photo_prob): method select_sketch_and_crop (line 1007) | def select_sketch_and_crop(self, image_size_rand, interpolate_type, ro... method get_batch_multi_res (line 1043) | def get_batch_multi_res(self, loop_num, interpolate_type, random_curso... method crop_patch (line 1083) | def crop_patch(self, image, center, image_size, crop_size): method gen_init_cursor_single (line 1095) | def gen_init_cursor_single(self, sketch_image): method gen_init_cursors (line 1108) | def gen_init_cursors(self, sketch_data, random_pos=True, init_cursor_n... function load_dataset_normal_images (line 1134) | def load_dataset_normal_images(dataset_base_dir, model_params): function load_dataset_training (line 1216) | def load_dataset_training(dataset_base_dir, model_params): FILE: hyper_parameters.py function get_default_hparams_clean (line 40) | def get_default_hparams_clean(): function get_default_hparams_rough (line 141) | def get_default_hparams_rough(): function get_default_hparams_normal (line 242) | def get_default_hparams_normal(): FILE: model_common_test.py class DiffPastingV3 (line 11) | class DiffPastingV3(object): method __init__ (line 12) | def __init__(self, raster_size): method image_pasting_sampling_v3 (line 23) | def image_pasting_sampling_v3(self): class VirtualSketchingModel (line 75) | class VirtualSketchingModel(object): method __init__ (line 76) | def __init__(self, hps, gpu_mode=True, reuse=False): method build_model (line 97) | def build_model(self): method config_model (line 122) | def config_model(self): method normalize_image_m1to1 (line 176) | def normalize_image_m1to1(self, in_img_0to1): method add_coords (line 181) | def add_coords(self, input_tensor): method build_combined_encoder (line 215) | def build_combined_encoder(self, patch_canvas, patch_photo, entire_can... method build_seq_decoder (line 311) | def build_seq_decoder(self, dec_cell, actual_input_x, initial_state): method get_mixture_coef (line 332) | def get_mixture_coef(self, outputs): method get_decoder_inputs (line 355) | def get_decoder_inputs(self): method rnn_decoder (line 359) | def rnn_decoder(self, dec_cell, initial_state, actual_input_x): method image_padding (line 372) | def image_padding(self, ori_image, window_size, pad_value): method image_cropping_fn (line 385) | def image_cropping_fn(self, fn_inputs): method image_cropping (line 412) | def image_cropping(self, cursor_position, input_img, image_size, windo... method image_cropping_v3 (line 435) | def image_cropping_v3(self, cursor_position, input_img, image_size, wi... method get_points_and_raster_image (line 463) | def get_points_and_raster_image(self, image_size): method differentiable_argmax (line 575) | def differentiable_argmax(self, input_pen, soft_beta): FILE: model_common_train.py class VirtualSketchingModel (line 13) | class VirtualSketchingModel(object): method __init__ (line 14) | def __init__(self, hps, gpu_mode=True, reuse=False): method build_model (line 35) | def build_model(self): method config_model (line 150) | def config_model(self): method normalize_image_m1to1 (line 226) | def normalize_image_m1to1(self, in_img_0to1): method add_coords (line 231) | def add_coords(self, input_tensor): method build_combined_encoder (line 265) | def build_combined_encoder(self, patch_canvas, patch_photo, entire_can... method build_seq_decoder (line 361) | def build_seq_decoder(self, dec_cell, actual_input_x, initial_state): method get_mixture_coef (line 382) | def get_mixture_coef(self, outputs): method get_decoder_inputs (line 405) | def get_decoder_inputs(self): method rnn_decoder (line 409) | def rnn_decoder(self, dec_cell, initial_state, actual_input_x): method image_padding (line 422) | def image_padding(self, ori_image, window_size, pad_value): method image_cropping_fn (line 435) | def image_cropping_fn(self, fn_inputs): method image_cropping (line 462) | def image_cropping(self, cursor_position, input_img, image_size, windo... method image_cropping_v3 (line 485) | def image_cropping_v3(self, cursor_position, input_img, image_size, wi... method get_pixel_value (line 513) | def get_pixel_value(self, img, x, y): method image_pasting_nondiff_single (line 540) | def image_pasting_nondiff_single(self, fn_inputs): method image_pasting_diff_single (line 570) | def image_pasting_diff_single(self, fn_inputs): method image_pasting_diff_single_v3 (line 603) | def image_pasting_diff_single_v3(self, fn_inputs): method image_pasting_diff_batch (line 657) | def image_pasting_diff_batch(self, patch_image, cursor_position, windo... method image_pasting (line 723) | def image_pasting(self, cursor_position_norm, patch_img, image_size, w... method image_pasting_v3 (line 756) | def image_pasting_v3(self, cursor_position_norm, patch_img, image_size... method get_points_and_raster_image (line 786) | def get_points_and_raster_image(self, initial_state, init_cursor, inpu... method differentiable_argmax (line 991) | def differentiable_argmax(self, input_pen, soft_beta): method build_losses (line 1022) | def build_losses(self, target_sketch, pred_raster_imgs, pred_params, method build_training_op_split (line 1146) | def build_training_op_split(self, raster_cost, sn_cost, cursor_outside... method build_training_op (line 1159) | def build_training_op(self, grad_list): method average_gradients (line 1174) | def average_gradients(self, grads_list): FILE: rasterization_utils/NeuralRenderer.py class RasterUnit (line 4) | class RasterUnit(object): method __init__ (line 5) | def __init__(self, method build_unit (line 15) | def build_unit(self): method conv2d (line 47) | def conv2d(self, input_tensor, out_channels, kernel_size, stride, scop... method fully_connected (line 54) | def fully_connected(self, input_tensor, in_dim, out_dim, scope, reuse=... method pixel_shuffle (line 63) | def pixel_shuffle(self, input_tensor, upscale_factor): class NeuralRasterizor (line 73) | class NeuralRasterizor(object): method __init__ (line 74) | def __init__(self, method raster_func_abs (line 88) | def raster_func_abs(self, input_data, raster_seq_len=None): method stroke_drawer_with_raster_unit (line 111) | def stroke_drawer_with_raster_unit(self, params_batch): class NeuralRasterizorStep (line 126) | class NeuralRasterizorStep(object): method __init__ (line 127) | def __init__(self, method raster_func_stroke_abs (line 135) | def raster_func_stroke_abs(self, input_data): method mask_ending_state (line 148) | def mask_ending_state(self, input_states): method stroke_drawer_with_raster_unit (line 159) | def stroke_drawer_with_raster_unit(self, params_batch): FILE: rasterization_utils/RealRenderer.py class GizehRasterizor (line 5) | class GizehRasterizor(object): method __init__ (line 6) | def __init__(self): method get_line_array_v2 (line 9) | def get_line_array_v2(self, image_size, seq_strokes, stroke_width, is_... method get_line_array (line 39) | def get_line_array(self, p1, p2, image_size, stroke_width, is_bin=True): method load_sketch_images_on_the_fly_v2 (line 60) | def load_sketch_images_on_the_fly_v2(self, image_size, norm_strokes3, ... method load_sketch_images_on_the_fly (line 75) | def load_sketch_images_on_the_fly(self, image_size, norm_strokes3, str... method normalize_coordinate_np (line 102) | def normalize_coordinate_np(self, sx, sy, image_size, raster_padding=1... method normalize_strokes_np (line 148) | def normalize_strokes_np(self, strokes_list, image_size): method raster_func (line 166) | def raster_func(self, input_data, image_size, stroke_width, is_bin=Tru... FILE: rnn.py function orthogonal (line 25) | def orthogonal(shape): function orthogonal_initializer (line 34) | def orthogonal_initializer(scale=1.0): function lstm_ortho_initializer (line 44) | def lstm_ortho_initializer(scale=1.0): class LSTMCell (line 61) | class LSTMCell(tf.contrib.rnn.RNNCell): method __init__ (line 68) | def __init__(self, method state_size (line 79) | def state_size(self): method output_size (line 83) | def output_size(self): method get_output (line 86) | def get_output(self, state): method __call__ (line 90) | def __call__(self, x, state, scope=None): function layer_norm_all (line 126) | def layer_norm_all(h, function layer_norm (line 160) | def layer_norm(x, function raw_layer_norm (line 188) | def raw_layer_norm(x, epsilon=1e-3): function super_linear (line 197) | def super_linear(x, class LayerNormLSTMCell (line 237) | class LayerNormLSTMCell(tf.contrib.rnn.RNNCell): method __init__ (line 244) | def __init__(self, method input_size (line 263) | def input_size(self): method output_size (line 267) | def output_size(self): method state_size (line 271) | def state_size(self): method get_output (line 274) | def get_output(self, state): method __call__ (line 278) | def __call__(self, x, state, timestep=0, scope=None): class HyperLSTMCell (line 314) | class HyperLSTMCell(tf.contrib.rnn.RNNCell): method __init__ (line 321) | def __init__(self, method input_size (line 368) | def input_size(self): method output_size (line 372) | def output_size(self): method state_size (line 376) | def state_size(self): method get_output (line 379) | def get_output(self, state): method hyper_norm (line 384) | def hyper_norm(self, layer, scope='hyper', use_bias=True): method __call__ (line 425) | def __call__(self, x, state, timestep=0, scope=None): FILE: subnet_tf_utils.py function get_initializer (line 4) | def get_initializer(init_method): function lrelu (line 22) | def lrelu(x, leak=0.2, name="lrelu", alt_relu_impl=False): function batchnorm (line 32) | def batchnorm(input, name='batch_norm', init_method=None): function layernorm (line 52) | def layernorm(input, name='layer_norm', init_method=None): function instance_norm (line 71) | def instance_norm(input, name="instance_norm", init_method=None): function linear1d (line 88) | def linear1d(inputlin, inputdim, outputdim, name="linear1d", init_method... function general_conv2d (line 100) | def general_conv2d(inputconv, output_dim=64, filter_height=4, filter_wid... function generative_cnn_c3_encoder (line 135) | def generative_cnn_c3_encoder(inputs, is_training=True, drop_keep_prob=0... function generative_cnn_c3_encoder_deeper (line 172) | def generative_cnn_c3_encoder_deeper(inputs, is_training=True, drop_keep... function generative_cnn_c3_encoder_combine33 (line 209) | def generative_cnn_c3_encoder_combine33(local_inputs, global_inputs, is_... function generative_cnn_c3_encoder_combine43 (line 276) | def generative_cnn_c3_encoder_combine43(local_inputs, global_inputs, is_... function generative_cnn_c3_encoder_combine53 (line 350) | def generative_cnn_c3_encoder_combine53(local_inputs, global_inputs, is_... function generative_cnn_c3_encoder_combineFC (line 431) | def generative_cnn_c3_encoder_combineFC(local_inputs, global_inputs, is_... function generative_cnn_c3_encoder_combineFC_jointAttn (line 516) | def generative_cnn_c3_encoder_combineFC_jointAttn(local_inputs, global_i... function generative_cnn_c3_encoder_combineFC_sepAttn (line 618) | def generative_cnn_c3_encoder_combineFC_sepAttn(local_inputs, global_inp... function generative_cnn_c3_encoder_deeper13 (line 730) | def generative_cnn_c3_encoder_deeper13(inputs, is_training=True, drop_ke... function generative_cnn_c3_encoder_deeper13_attn (line 775) | def generative_cnn_c3_encoder_deeper13_attn(inputs, is_training=True, dr... function generative_cnn_encoder (line 822) | def generative_cnn_encoder(inputs, is_training=True, drop_keep_prob=0.5,... function generative_cnn_encoder_deeper (line 854) | def generative_cnn_encoder_deeper(inputs, is_training=True, drop_keep_pr... function generative_cnn_encoder_deeper13 (line 886) | def generative_cnn_encoder_deeper13(inputs, is_training=True, drop_keep_... function max_pooling (line 931) | def max_pooling(x) : function hw_flatten (line 935) | def hw_flatten(x) : function self_attention (line 939) | def self_attention(x, in_channel, name='self_attention'): function global_avg_pooling (line 966) | def global_avg_pooling(x): function cnn_discriminator_wgan_gp (line 971) | def cnn_discriminator_wgan_gp(discrim_inputs, discrim_targets, init_meth... FILE: test_photograph_to_line.py function sample (line 17) | def sample(sess, model, input_photos, init_cursor, image_size, init_len,... function main_testing (line 128) | def main_testing(test_image_base_dir, test_dataset, test_image_name, function main (line 228) | def main(model_name, test_image_name, sampling_num): FILE: test_rough_sketch_simplification.py function move_cursor_to_undrawn (line 17) | def move_cursor_to_undrawn(current_pos_list, input_image_, patch_size, function sample (line 81) | def sample(sess, model, input_photos, init_cursor, image_size, init_len,... function main_testing (line 220) | def main_testing(test_image_base_dir, test_dataset, test_image_name, function main (line 324) | def main(model_name, test_image_name, sampling_num): FILE: test_vectorization.py function move_cursor_to_undrawn (line 19) | def move_cursor_to_undrawn(current_canvas_list, input_image_, last_min_a... function sample (line 154) | def sample(sess, model, input_photos, init_cursor, image_size, init_len,... function main_testing (line 300) | def main_testing(test_image_base_dir, test_dataset, test_image_name, function main (line 428) | def main(model_name, test_image_name, sampling_num): FILE: tools/gif_making.py function add_scaling_visualization (line 15) | def add_scaling_visualization(canvas_images, cursor, window_size, image_... function make_gif (line 56) | def make_gif(sess, pasting_func, data, init_cursor, image_size, infer_le... function gif_making (line 159) | def gif_making(npz_path): FILE: tools/svg_conversion.py function write_svg_1 (line 7) | def write_svg_1(path_list, img_size, save_path): function write_svg_2 (line 62) | def write_svg_2(path_list, img_size, save_path): function convert_strokes_to_svg (line 116) | def convert_strokes_to_svg(data, init_cursor, image_size, infer_lengths,... function data_convert_to_absolute (line 198) | def data_convert_to_absolute(npz_path, svg_type): FILE: tools/visualize_drawing.py function display_strokes_final (line 15) | def display_strokes_final(sess, pasting_func, data, init_cursor, image_s... function visualize_drawing (line 172) | def visualize_drawing(npz_path): FILE: train_rough_photograph.py function should_save_log_img (line 20) | def should_save_log_img(step_): function save_log_images (line 27) | def save_log_images(sess, model, data_set, save_root, step_num, curr_pho... function train (line 90) | def train(sess, train_model, eval_sample_model, train_set, valid_set, su... function trainer (line 279) | def trainer(model_params): function main (line 326) | def main(dataset_type): FILE: train_vectorization.py function should_save_log_img (line 19) | def should_save_log_img(step_): function save_log_images (line 26) | def save_log_images(sess, model, data_set, save_root, step_num, save_num... function train (line 87) | def train(sess, train_model, eval_sample_model, train_set, val_set, sub_... function trainer (line 260) | def trainer(model_params): function main (line 307) | def main(): FILE: utils.py function reset_graph (line 14) | def reset_graph(): function load_checkpoint (line 22) | def load_checkpoint(sess, checkpoint_path, ras_only=False, perceptual_on... function create_summary (line 64) | def create_summary(summary_writer, summ_map, step): function save_model (line 73) | def save_model(sess, saver, model_save_path, global_step): function normal (line 85) | def normal(x, width): function draw (line 89) | def draw(f, width=128): function rgb_trans (line 113) | def rgb_trans(split_num, break_values): function get_colors (line 132) | def get_colors(color_num): function save_seq_data (line 154) | def save_seq_data(save_root, save_filename, strokes_data, init_cursors, ... function image_pasting_v3_testing (line 162) | def image_pasting_v3_testing(patch_image, cursor, image_size, window_siz... function draw_strokes (line 180) | def draw_strokes(data, save_root, save_filename, input_img, image_size, ... function update_hyperparams (line 363) | def update_hyperparams(model_params, model_base_dir, model_name, infer_d... FILE: vgg_utils/VGG16.py function vgg_net (line 4) | def vgg_net(x, n_classes, img_size, reuse, is_train=True, dropout_rate=0... function vgg_net_slim (line 68) | def vgg_net_slim(x, img_size): FILE: virtual_sketch_gui.py class VirtualSketchApp (line 19) | class VirtualSketchApp: method __init__ (line 20) | def __init__(self, root): method build_ui (line 28) | def build_ui(self): method choose_file (line 44) | def choose_file(self): method run_processing (line 57) | def run_processing(self): method move_outputs_to_sketches (line 77) | def move_outputs_to_sketches(self): method run_svg_conversion (line 91) | def run_svg_conversion(self):