File tree Expand file tree Collapse file tree 5 files changed +1
-24
lines changed Expand file tree Collapse file tree 5 files changed +1
-24
lines changed Original file line number Diff line number Diff line change 22from __future__ import print_function , division
33
44import os
5- import time
65import random
76import torch
8- import torchvision
97import numpy as np
10- import torch .nn as nn
118import torch .optim as optim
12- import torch .backends .cudnn as cudnn
13-
149from abc import ABCMeta , abstractmethod
15- from datetime import datetime
16- from pymic .util .parse_config import parse_config
1710from pymic .net_run .get_optimizer import get_optimiser
1811
1912def seed_torch (seed = 1 ):
Original file line number Diff line number Diff line change 33
44import copy
55import csv
6- import os
7- import sys
86import time
9- import random
107import torch
118from torchvision import transforms
129import numpy as np
1310import torch .nn as nn
14- import torch .optim as optim
15- import torch .nn .functional as F
16- import matplotlib .pyplot as plt
17- from PIL import Image
1811from datetime import datetime
1912from tensorboardX import SummaryWriter
2013from pymic .io .nifty_dataset import ClassificationDataset
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22from __future__ import print_function , division
3- from cmath import log
4-
53import copy
64import os
7- import sys
85import time
9- import random
106import logging
117import scipy
128import torch
3026from pymic .loss .seg .util import get_classwise_dice
3127from pymic .transform .trans_dict import TransformDict
3228from pymic .util .image_process import convert_label
33- from pymic .util .parse_config import parse_config
3429
3530class SegmentationAgent (NetRunAgent ):
3631 def __init__ (self , config , stage = 'train' ):
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22from __future__ import print_function , division
33
4- import os
5- import sys
6- import math
74import torch
8- import numpy as np
95from torch .nn .functional import interpolate
106
117class Inferer (object ):
Original file line number Diff line number Diff line change 1111
1212setuptools .setup (
1313 name = 'PYMIC' ,
14- version = "0.2.4 " ,
14+ version = "0.2.5 " ,
1515 author = 'PyMIC Consortium' ,
1616 author_email = 'wguotai@gmail.com' ,
1717 description = description ,
You can’t perform that action at this time.
0 commit comments