repo stringlengths 2 99 | file stringlengths 13 225 | code stringlengths 0 18.3M | file_length int64 0 18.3M | avg_line_length float64 0 1.36M | max_line_length int64 0 4.26M | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
Tangent-Bundle-Neural-Networks | Tangent-Bundle-Neural-Networks-main/Journal_repo/mainWindPrediction.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: Claudio Battiloro
"""
import warnings
#warnings.filterwarnings("ignore") to suppress warnings
import sys
import pytorch_lightning as pl
from pytorch_lightning.callbacks.early_stopping import EarlyStopping
import torch
from architecture import RTNN, RMNN
device... | 9,072 | 47.518717 | 191 | py |
AP-BSN | AP-BSN-master/test.py | import argparse, os
import torch
from src.util.config_parse import ConfigParser
from src.trainer import get_trainer_class
def main():
# parsing configuration
args = argparse.ArgumentParser()
args.add_argument('-s', '--session_name', default=None, type=str)
args.add_argument('-c', '--config', ... | 1,335 | 30.069767 | 78 | py |
AP-BSN | AP-BSN-master/prep.py | import argparse, os
import multiprocessing as mp
from importlib import import_module
from src.datahandler import get_dataset_class
def main():
# parsing configuration
args = argparse.ArgumentParser()
args.add_argument('-d', '--dataset', default='', type=str)
args.add_argument('-s', '--patch_si... | 1,023 | 27.444444 | 121 | py |
AP-BSN | AP-BSN-master/train.py | import argparse, os
from importlib import import_module
import torch
from src.util.config_parse import ConfigParser
from src.trainer import get_trainer_class
def main():
# parsing configuration
args = argparse.ArgumentParser()
args.add_argument('-s', '--session_name', default=None, type=str)
args.a... | 1,089 | 26.25 | 78 | py |
AP-BSN | AP-BSN-master/src/trainer/base.py | import os
import math
import time, datetime
import cv2
import numpy as np
import torch
from torch import nn
from torch import optim
import torch.autograd as autograd
from torch.utils.tensorboard import SummaryWriter
from torch.utils.data import DataLoader
from ..util.dnd_submission.bundle_submissions import bundle_su... | 27,989 | 37.767313 | 155 | py |
AP-BSN | AP-BSN-master/src/trainer/__init__.py | import os
from importlib import import_module
trainer_class_dict = {}
def regist_trainer(trainer):
trainer_name = trainer.__name__.lower()
assert not trainer_name in trainer_class_dict, 'there is already registered dataset: %s in trainer_dict.' % trainer_name
trainer_class_dict[trainer_name] = trainer
... | 702 | 28.291667 | 124 | py |
AP-BSN | AP-BSN-master/src/trainer/trainer.py | import os
import datetime
import torch
from . import regist_trainer
from .base import BaseTrainer
from ..model import get_model_class
@regist_trainer
class Trainer(BaseTrainer):
def __init__(self, cfg):
super().__init__(cfg)
@torch.no_grad()
def test(self):
''' initialization test setti... | 4,319 | 44 | 184 | py |
AP-BSN | AP-BSN-master/src/util/logger.py | import threading
import datetime, os
from .progress_msg import ProgressMsg
# from .chart import LossChart
class Logger(ProgressMsg):
def __init__(self, max_iter:tuple=None, log_dir:str=None, log_file_option:str='w', log_lvl:str='note', log_file_lvl:str='info', log_include_time:bool=True):
'''
Arg... | 3,293 | 34.042553 | 160 | py |
AP-BSN | AP-BSN-master/src/util/progress_msg.py | import time
import datetime
import sys
class ProgressMsg():
def __init__(self, max_iter, min_time_interval=0.1):
'''
Args:
max_iter : (max_epoch, max_data_length, ...)
min_time_interval (second)
'''
self.max_iter = max_iter
self.min_time_interval = mi... | 3,364 | 30.448598 | 144 | py |
AP-BSN | AP-BSN-master/src/util/summary_logging.py |
import time
from torch.utils.tensorboard import SummaryWriter
import numpy as np
class LossWriter(SummaryWriter):
def __init__(self, log_dir=None, comment=''):
if log_dir == None:
log_dir = './logs/tensorboard/' + time.strftime('%Y-%m-%d--%H-%M-%S', time.localtime(time.time()))
super(... | 640 | 28.136364 | 110 | py |
AP-BSN | AP-BSN-master/src/util/config_parse.py | import yaml, os
class ConfigParser:
def __init__(self, args):
# load model configuration
cfg_file = os.path.join('conf', args.config+'.yaml')
with open(cfg_file) as f:
self.config = yaml.load(f, Loader=yaml.FullLoader)
# load argument
for arg in args.__dict__:
... | 1,087 | 26.897436 | 63 | py |
AP-BSN | AP-BSN-master/src/util/util.py | from math import exp
import cv2
import numpy as np
import torch
import torch.nn.functional as F
from skimage.metrics import peak_signal_noise_ratio, structural_similarity
def np2tensor(n:np.array):
'''
transform numpy array (image) to torch Tensor
BGR -> RGB
(h,w,c) -> (c,h,w)
'''
# gray
... | 7,961 | 31.765432 | 132 | py |
AP-BSN | AP-BSN-master/src/util/file_manager.py | import os
import cv2
import numpy as np
import torch
from .util import tensor2np
class FileManager:
def __init__(self, session_name:str):
self.output_folder = "./output"
if not os.path.isdir(self.output_folder):
os.makedirs(self.output_folder)
print("[WARNING] output folde... | 1,563 | 35.372093 | 98 | py |
AP-BSN | AP-BSN-master/src/util/dnd_submission/pytorch_wrapper.py | # Author: Tobias Plötz, TU Darmstadt ([email protected])
# This file is part of the implementation as described in the CVPR 2017 paper:
# Tobias Plötz and Stefan Roth, Benchmarking Denoising Algorithms with Real Photographs.
# Please see the file LICENSE.txt for the license governing this code.
... | 984 | 31.833333 | 89 | py |
AP-BSN | AP-BSN-master/src/util/dnd_submission/bundle_submissions.py | # Author: Tobias Plötz, TU Darmstadt ([email protected])
# This file is part of the implementation as described in the CVPR 2017 paper:
# Tobias Plötz and Stefan Roth, Benchmarking Denoising Algorithms with Real Photographs.
# Please see the file LICENSE.txt for the license governing this code.
... | 2,380 | 31.616438 | 89 | py |
AP-BSN | AP-BSN-master/src/util/dnd_submission/dnd_denoise.py | # Author: Tobias Plötz, TU Darmstadt ([email protected])
# This file is part of the implementation as described in the CVPR 2017 paper:
# Tobias Plötz and Stefan Roth, Benchmarking Denoising Algorithms with Real Photographs.
# Please see the file LICENSE.txt for the license governing this code.
... | 5,052 | 39.103175 | 106 | py |
AP-BSN | AP-BSN-master/src/datahandler/custom.py | import os
import h5py
from src.datahandler.denoise_dataset import DenoiseDataSet
from . import regist_dataset
@regist_dataset
class CustomSample(DenoiseDataSet):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def _scan(self):
# check if the dataset exists
dat... | 1,163 | 33.235294 | 85 | py |
AP-BSN | AP-BSN-master/src/datahandler/DND.py | import os
import torch
import h5py
from src.datahandler.denoise_dataset import DenoiseDataSet
from . import regist_dataset
@regist_dataset
class DND(DenoiseDataSet):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def _scan(self):
dataset_path = os.path.join(self.data... | 1,988 | 31.080645 | 92 | py |
AP-BSN | AP-BSN-master/src/datahandler/denoise_dataset.py | import random, os
import cv2
import numpy as np
from scipy.io import savemat
import torch
from torch.utils.data import Dataset
from ..util.util import rot_hflip_img, tensor2np, np2tensor, mean_conv2d
class DenoiseDataSet(Dataset):
def __init__(self, add_noise:str=None, crop_size:list=None, aug:list=None, n... | 17,823 | 41.539379 | 198 | py |
AP-BSN | AP-BSN-master/src/datahandler/SIDD.py | import os
import scipy.io
import numpy as np
from src.datahandler.denoise_dataset import DenoiseDataSet
from . import regist_dataset
@regist_dataset
class SIDD(DenoiseDataSet):
'''
SIDD datatset class using original images.
'''
def __init__(self, *args, **kwargs):
super().__init__(*args, **k... | 6,414 | 37.413174 | 139 | py |
AP-BSN | AP-BSN-master/src/datahandler/NIND.py | import os
from src.datahandler.denoise_dataset import DenoiseDataSet
from . import regist_dataset
@regist_dataset
class NIND(DenoiseDataSet):
'''
NIND datatset class using original images.
'''
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def _scan(self):
... | 3,354 | 35.075269 | 120 | py |
AP-BSN | AP-BSN-master/src/datahandler/__init__.py |
import os
from importlib import import_module
from .denoise_dataset import ReturnMergedDataset
dataset_class_dict = {}
def regist_dataset(dataset_class):
dataset_name = dataset_class.__name__.lower()
assert not dataset_name in dataset_class_dict, 'there is already registered dataset: %s in dataset_class_dict... | 1,076 | 29.771429 | 130 | py |
AP-BSN | AP-BSN-master/src/loss/recon.py |
import torch
import torch.nn as nn
import torch.nn.functional as F
from . import regist_loss
eps = 1e-6
# ============================ #
# Reconstruction loss #
# ============================ #
@regist_loss
class L1():
def __call__(self, input_data, model_output, data, module):
output = model... | 563 | 20.692308 | 63 | py |
AP-BSN | AP-BSN-master/src/loss/__init__.py | import os
from importlib import import_module
import torch
import torch.nn as nn
loss_class_dict = {}
def regist_loss(loss_class):
loss_name = loss_class.__name__
assert not loss_name in loss_class_dict, 'there is already registered loss name: %s in loss_class_dict.' % loss_name
loss_class_dict[loss_nam... | 4,173 | 36.267857 | 120 | py |
AP-BSN | AP-BSN-master/src/loss/recon_self.py | import torch
import torch.nn as nn
import torch.nn.functional as F
from . import regist_loss
eps = 1e-6
# ============================ #
# Self-reconstruction loss #
# ============================ #
@regist_loss
class self_L1():
def __call__(self, input_data, model_output, data, module):
output = m... | 750 | 24.896552 | 87 | py |
AP-BSN | AP-BSN-master/src/model/DBSNl.py | import torch
import torch.nn as nn
import torch.nn.functional as F
from . import regist_model
@regist_model
class DBSNl(nn.Module):
'''
Dilated Blind-Spot Network (cutomized light version)
self-implemented version of the network from "Unpaired Learning of Deep Image Denoising (ECCV 2020)"
and severa... | 3,510 | 30.630631 | 104 | py |
AP-BSN | AP-BSN-master/src/model/__init__.py |
import os
from importlib import import_module
model_class_dict = {}
def regist_model(model_class):
model_name = model_class.__name__.lower()
assert not model_name in model_class_dict, 'there is already registered model: %s in model_class_dict.' % model_name
model_class_dict[model_name] = model_class
... | 687 | 28.913043 | 120 | py |
AP-BSN | AP-BSN-master/src/model/APBSN.py |
import torch
import torch.nn as nn
import torch.nn.functional as F
from ..util.util import pixel_shuffle_down_sampling, pixel_shuffle_up_sampling
from . import regist_model
from .DBSNl import DBSNl
@regist_model
class APBSN(nn.Module):
'''
Asymmetric PD Blind-Spot Network (AP-BSN)
'''
def __init__(s... | 4,559 | 34.625 | 101 | py |
CoTr | CoTr-main/nnUNet/setup.py | from setuptools import setup, find_namespace_packages
setup(name='nnunet',
packages=find_namespace_packages(include=["nnunet", "nnunet.*"]),
version='1.6.6',
description='nnU-Net. Framework for out-of-the box biomedical image segmentation.',
url='https://github.com/MIC-DKFZ/nnUNet',
autho... | 2,887 | 57.938776 | 154 | py |
CoTr | CoTr-main/nnUNet/tests/test_steps_for_sliding_window_prediction.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 8,445 | 44.408602 | 120 | py |
CoTr | CoTr-main/nnUNet/nnunet/configuration.py | import os
default_num_threads = 8 if 'nnUNet_def_n_proc' not in os.environ else int(os.environ['nnUNet_def_n_proc'])
RESAMPLING_SEPARATE_Z_ANISO_THRESHOLD = 3 # determines what threshold to use for resampling the low resolution axis
# separately (with NN) | 257 | 50.6 | 116 | py |
CoTr | CoTr-main/nnUNet/nnunet/__init__.py | from __future__ import absolute_import
print("\n\nPlease cite the following paper when using nnUNet:\n\nIsensee, F., Jaeger, P.F., Kohl, S.A.A. et al. "
"\"nnU-Net: a self-configuring method for deep learning-based biomedical image segmentation.\" "
"Nat Methods (2020). https://doi.org/10.1038/s41592-020-01... | 462 | 65.142857 | 113 | py |
CoTr | CoTr-main/nnUNet/nnunet/paths.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 2,879 | 47.813559 | 128 | py |
CoTr | CoTr-main/nnUNet/nnunet/postprocessing/consolidate_postprocessing_simple.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 2,729 | 43.754098 | 119 | py |
CoTr | CoTr-main/nnUNet/nnunet/postprocessing/consolidate_postprocessing.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 4,711 | 48.6 | 121 | py |
CoTr | CoTr-main/nnUNet/nnunet/postprocessing/consolidate_all_for_paper.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 3,162 | 50.016129 | 157 | py |
CoTr | CoTr-main/nnUNet/nnunet/postprocessing/connected_components.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 19,122 | 43.575758 | 127 | py |
CoTr | CoTr-main/nnUNet/nnunet/evaluation/add_dummy_task_with_mean_over_all_tasks.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 3,246 | 40.628205 | 114 | py |
CoTr | CoTr-main/nnUNet/nnunet/evaluation/add_mean_dice_to_json.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 2,024 | 37.942308 | 132 | py |
CoTr | CoTr-main/nnUNet/nnunet/evaluation/region_based_evaluation.py | from copy import deepcopy
from multiprocessing.pool import Pool
from batchgenerators.utilities.file_and_folder_operations import *
from medpy import metric
import SimpleITK as sitk
import numpy as np
from nnunet.configuration import default_num_threads
from nnunet.postprocessing.consolidate_postprocessing import colle... | 3,938 | 32.956897 | 124 | py |
CoTr | CoTr-main/nnUNet/nnunet/evaluation/evaluator.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 18,778 | 37.879917 | 129 | py |
CoTr | CoTr-main/nnUNet/nnunet/evaluation/collect_results_files.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 1,969 | 39.204082 | 114 | py |
CoTr | CoTr-main/nnUNet/nnunet/evaluation/surface_dice.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 2,686 | 45.327586 | 120 | py |
CoTr | CoTr-main/nnUNet/nnunet/evaluation/metrics.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 13,031 | 31.019656 | 157 | py |
CoTr | CoTr-main/nnUNet/nnunet/evaluation/__init__.py | from __future__ import absolute_import
from . import * | 54 | 26.5 | 38 | py |
CoTr | CoTr-main/nnUNet/nnunet/evaluation/model_selection/rank_candidates_cascade.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 6,565 | 38.793939 | 178 | py |
CoTr | CoTr-main/nnUNet/nnunet/evaluation/model_selection/rank_candidates.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 13,165 | 43.630508 | 178 | py |
CoTr | CoTr-main/nnUNet/nnunet/evaluation/model_selection/rank_candidates_StructSeg.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 6,992 | 42.70625 | 178 | py |
CoTr | CoTr-main/nnUNet/nnunet/evaluation/model_selection/figure_out_what_to_submit.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 10,376 | 50.371287 | 221 | py |
CoTr | CoTr-main/nnUNet/nnunet/evaluation/model_selection/__init__.py | from __future__ import absolute_import
from . import * | 54 | 26.5 | 38 | py |
CoTr | CoTr-main/nnUNet/nnunet/evaluation/model_selection/summarize_results_with_plans.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 6,207 | 54.927928 | 241 | py |
CoTr | CoTr-main/nnUNet/nnunet/evaluation/model_selection/collect_all_fold0_results_and_summarize_in_one_csv.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 3,483 | 46.081081 | 118 | py |
CoTr | CoTr-main/nnUNet/nnunet/evaluation/model_selection/ensemble.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 7,435 | 54.492537 | 207 | py |
CoTr | CoTr-main/nnUNet/nnunet/evaluation/model_selection/summarize_results_in_one_json.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 12,141 | 50.232068 | 134 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/__init__.py | from __future__ import absolute_import
from . import * | 54 | 26.5 | 38 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/model_restore.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 7,125 | 44.679487 | 149 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/dataloading/__init__.py | from __future__ import absolute_import
from . import * | 54 | 26.5 | 38 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/dataloading/dataset_loading.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 33,735 | 54.486842 | 157 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNetTrainerV2_DDP.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 30,456 | 50.447635 | 132 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNetTrainerV2_CascadeFullRes.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 19,421 | 54.176136 | 128 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNetTrainerV2.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 21,273 | 48.018433 | 134 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/__init__.py | from __future__ import absolute_import
from . import * | 54 | 26.5 | 38 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNetTrainerCascadeFullRes.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 15,950 | 54.193772 | 128 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNetTrainerV2_DP.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 11,682 | 44.459144 | 124 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNetTrainerV2_fp32.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 1,225 | 42.785714 | 114 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/network_trainer.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 30,849 | 41.376374 | 150 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNetTrainer.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 39,650 | 53.094134 | 142 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/competitions_with_custom_Trainers/BraTS2020/nnUNetTrainerV2BraTSRegions.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 21,055 | 49.252983 | 124 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/competitions_with_custom_Trainers/BraTS2020/nnUNetTrainerV2BraTSRegions_moreDA.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 14,362 | 51.805147 | 119 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/competitions_with_custom_Trainers/MMS/nnUNetTrainerV2_MMS.py | import torch
from nnunet.network_architecture.generic_UNet import Generic_UNet
from nnunet.network_architecture.initialization import InitWeights_He
from nnunet.training.network_training.nnUNet_variants.data_augmentation.nnUNetTrainerV2_insaneDA import \
nnUNetTrainerV2_insaneDA
from nnunet.utilities.nd_softmax imp... | 2,662 | 42.655738 | 117 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/nnUNetTrainerCE.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 1,304 | 53.375 | 116 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/__init__.py | from __future__ import absolute_import
from . import * | 54 | 26.5 | 38 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/nnUNetTrainerNoDA.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 4,742 | 50.554348 | 117 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/resampling/nnUNetTrainerV2_resample33.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 3,131 | 57 | 119 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/copies/nnUNetTrainerV2_copies.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 2,527 | 49.56 | 120 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/profiling/nnUNetTrainerV2_dummyLoad.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 5,758 | 42.300752 | 199 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/profiling/nnUNetTrainerV2_2epochs.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 13,888 | 46.40273 | 134 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/optimizer_and_lr/nnUNetTrainerV2_SGD_fixedSchedule2.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 1,950 | 39.645833 | 114 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/optimizer_and_lr/nnUNetTrainerV2_momentum09.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 1,192 | 43.185185 | 116 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/optimizer_and_lr/nnUNetTrainerV2_Ranger_lr3en4.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 1,493 | 45.6875 | 114 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/optimizer_and_lr/nnUNetTrainerV2_fp16.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 1,206 | 47.28 | 114 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/optimizer_and_lr/nnUNetTrainerV2_cycleAtEnd.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 3,693 | 40.044444 | 114 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/optimizer_and_lr/nnUNetTrainerV2_reduceMomentumDuringTraining.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 1,947 | 40.446809 | 120 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/optimizer_and_lr/nnUNetTrainerV2_SGD_ReduceOnPlateau.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 2,707 | 52.098039 | 116 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/optimizer_and_lr/nnUNetTrainerV2_Ranger_lr1en2.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 1,493 | 45.6875 | 114 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/optimizer_and_lr/nnUNetTrainerV2_momentum09in2D.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 1,293 | 42.133333 | 116 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/optimizer_and_lr/nnUNetTrainerV2_Adam_lr_3en4.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 1,246 | 48.88 | 119 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/optimizer_and_lr/nnUNetTrainerV2_momentum095.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 1,194 | 43.259259 | 116 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/optimizer_and_lr/nnUNetTrainerV2_warmup.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 1,756 | 42.925 | 114 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/optimizer_and_lr/nnUNetTrainerV2_Adam_ReduceOnPlateau.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 2,899 | 50.785714 | 117 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/optimizer_and_lr/nnUNetTrainerV2_Ranger_lr3en3.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 1,493 | 45.6875 | 114 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/optimizer_and_lr/nnUNetTrainerV2_SGD_lrs.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 1,610 | 46.382353 | 114 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/optimizer_and_lr/nnUNetTrainerV2_momentum098.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 1,194 | 43.259259 | 116 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/optimizer_and_lr/nnUNetTrainerV2_Adam.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 1,245 | 39.193548 | 131 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/optimizer_and_lr/nnUNetTrainerV2_SGD_fixedSchedule.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 1,808 | 40.113636 | 114 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/data_augmentation/nnUNetTrainerV2_insaneDA.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 7,799 | 54.319149 | 123 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/data_augmentation/nnUNetTrainerV2_noDA.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 7,886 | 53.770833 | 121 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/data_augmentation/nnUNetTrainerV2_DA2.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 1,182 | 35.96875 | 114 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/data_augmentation/nnUNetTrainerV2_DA3.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 19,740 | 55.402857 | 120 | py |
CoTr | CoTr-main/nnUNet/nnunet/training/network_training/nnUNet_variants/data_augmentation/nnUNetTrainerV2_independentScalePerAxis.py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | 976 | 41.478261 | 114 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.