SYMBOL INDEX (46 symbols across 12 files) FILE: app.py function segmentation (line 16) | def segmentation(image_path): function upload (line 32) | def upload(): function wechat_matting (line 47) | def wechat_matting(): function seg (line 63) | def seg(): function matting (line 83) | def matting(): function clean (line 105) | def clean(): FILE: dice_loss.py class DiceCoeff (line 5) | class DiceCoeff(Function): method forward (line 8) | def forward(self, input, target): method backward (line 18) | def backward(self, grad_output): function dice_coeff (line 32) | def dice_coeff(input, target): FILE: eval.py function eval_net (line 8) | def eval_net(net, loader, device, n_val): FILE: predict.py function predict_img (line 17) | def predict_img(net, function get_args (line 53) | def get_args(): function get_output_filenames (line 80) | def get_output_filenames(args): function mask_to_image (line 97) | def mask_to_image(mask): FILE: submit.py function rle_encode (line 13) | def rle_encode(mask_image): function submit (line 26) | def submit(net, gpu=False): FILE: train.py function train_net (line 23) | def train_net(net, function get_args (line 123) | def get_args(): FILE: unet/unet_model.py class UNet (line 8) | class UNet(nn.Module): method __init__ (line 9) | def __init__(self, n_channels, n_classes, bilinear=True): method forward (line 26) | def forward(self, x): FILE: unet/unet_parts.py class DoubleConv (line 8) | class DoubleConv(nn.Module): method __init__ (line 11) | def __init__(self, in_channels, out_channels): method forward (line 22) | def forward(self, x): class Down (line 26) | class Down(nn.Module): method __init__ (line 29) | def __init__(self, in_channels, out_channels): method forward (line 36) | def forward(self, x): class Up (line 40) | class Up(nn.Module): method __init__ (line 43) | def __init__(self, in_channels, out_channels, bilinear=True): method forward (line 54) | def forward(self, x1, x2): class OutConv (line 69) | class OutConv(nn.Module): method __init__ (line 70) | def __init__(self, in_channels, out_channels): method forward (line 74) | def forward(self, x): FILE: utils/data_vis.py function plot_img_and_mask (line 4) | def plot_img_and_mask(img, mask): FILE: utils/dataset.py class BasicDataset (line 11) | class BasicDataset(Dataset): method __init__ (line 12) | def __init__(self, imgs_dir, masks_dir, scale=1): method __len__ (line 22) | def __len__(self): method preprocess (line 26) | def preprocess(cls, pil_img, scale): method __getitem__ (line 44) | def __getitem__(self, i): FILE: web/flask_utils.py function tid_maker (line 6) | def tid_maker(): function merge_image_name (line 10) | def merge_image_name(image1, image2): function change_image_channels (line 17) | def change_image_channels(image_content, save_path): function change_channels_to_rgb (line 27) | def change_channels_to_rgb(image_path): FILE: web/matting.py function process (line 9) | def process(im_name, bg_name): function composite4 (line 25) | def composite4(fg, bg, a, w, h, name):