Skip to content

Commit 1ec43c6

Browse files
authored
Merge pull request #24 from HiLab-git/dev
Dev
2 parents e594ef8 + 5414828 commit 1ec43c6

File tree

5 files changed

+1
-24
lines changed

5 files changed

+1
-24
lines changed

pymic/net_run/agent_abstract.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,11 @@
22
from __future__ import print_function, division
33

44
import os
5-
import time
65
import random
76
import torch
8-
import torchvision
97
import numpy as np
10-
import torch.nn as nn
118
import torch.optim as optim
12-
import torch.backends.cudnn as cudnn
13-
149
from abc import ABCMeta, abstractmethod
15-
from datetime import datetime
16-
from pymic.util.parse_config import parse_config
1710
from pymic.net_run.get_optimizer import get_optimiser
1811

1912
def seed_torch(seed=1):

pymic/net_run/agent_cls.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,11 @@
33

44
import copy
55
import csv
6-
import os
7-
import sys
86
import time
9-
import random
107
import torch
118
from torchvision import transforms
129
import numpy as np
1310
import 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
1811
from datetime import datetime
1912
from tensorboardX import SummaryWriter
2013
from pymic.io.nifty_dataset import ClassificationDataset

pymic/net_run/agent_seg.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import print_function, division
3-
from cmath import log
4-
53
import copy
64
import os
7-
import sys
85
import time
9-
import random
106
import logging
117
import scipy
128
import torch
@@ -30,7 +26,6 @@
3026
from pymic.loss.seg.util import get_classwise_dice
3127
from pymic.transform.trans_dict import TransformDict
3228
from pymic.util.image_process import convert_label
33-
from pymic.util.parse_config import parse_config
3429

3530
class SegmentationAgent(NetRunAgent):
3631
def __init__(self, config, stage = 'train'):

pymic/net_run/infer_func.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import print_function, division
33

4-
import os
5-
import sys
6-
import math
74
import torch
8-
import numpy as np
95
from torch.nn.functional import interpolate
106

117
class Inferer(object):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
setuptools.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,

0 commit comments

Comments
 (0)