From 2fa847070162cd721f571b093fc3943841b10faa Mon Sep 17 00:00:00 2001 From: taigw Date: Wed, 27 Jul 2022 15:41:46 +0800 Subject: [PATCH 1/2] remove unused import remove unused import --- pymic/net_run/agent_abstract.py | 7 ------- pymic/net_run/agent_cls.py | 7 ------- pymic/net_run/agent_seg.py | 5 ----- pymic/net_run/infer_func.py | 4 ---- 4 files changed, 23 deletions(-) diff --git a/pymic/net_run/agent_abstract.py b/pymic/net_run/agent_abstract.py index 3d9b7f8..420e2f9 100644 --- a/pymic/net_run/agent_abstract.py +++ b/pymic/net_run/agent_abstract.py @@ -2,18 +2,11 @@ from __future__ import print_function, division import os -import time import random import torch -import torchvision import numpy as np -import torch.nn as nn import torch.optim as optim -import torch.backends.cudnn as cudnn - from abc import ABCMeta, abstractmethod -from datetime import datetime -from pymic.util.parse_config import parse_config from pymic.net_run.get_optimizer import get_optimiser def seed_torch(seed=1): diff --git a/pymic/net_run/agent_cls.py b/pymic/net_run/agent_cls.py index c86d1c5..4a80532 100644 --- a/pymic/net_run/agent_cls.py +++ b/pymic/net_run/agent_cls.py @@ -3,18 +3,11 @@ import copy import csv -import os -import sys import time -import random import torch from torchvision import transforms import numpy as np import torch.nn as nn -import torch.optim as optim -import torch.nn.functional as F -import matplotlib.pyplot as plt -from PIL import Image from datetime import datetime from tensorboardX import SummaryWriter from pymic.io.nifty_dataset import ClassificationDataset diff --git a/pymic/net_run/agent_seg.py b/pymic/net_run/agent_seg.py index 0b9d706..e4bb97c 100644 --- a/pymic/net_run/agent_seg.py +++ b/pymic/net_run/agent_seg.py @@ -1,12 +1,8 @@ # -*- coding: utf-8 -*- from __future__ import print_function, division -from cmath import log - import copy import os -import sys import time -import random import logging import scipy import torch @@ -30,7 +26,6 @@ from pymic.loss.seg.util import get_classwise_dice from pymic.transform.trans_dict import TransformDict from pymic.util.image_process import convert_label -from pymic.util.parse_config import parse_config class SegmentationAgent(NetRunAgent): def __init__(self, config, stage = 'train'): diff --git a/pymic/net_run/infer_func.py b/pymic/net_run/infer_func.py index 40d76c1..e603725 100644 --- a/pymic/net_run/infer_func.py +++ b/pymic/net_run/infer_func.py @@ -1,11 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import print_function, division -import os -import sys -import math import torch -import numpy as np from torch.nn.functional import interpolate class Inferer(object): From 5414828b30765ae4c7b591290d8affc59791b43b Mon Sep 17 00:00:00 2001 From: taigw Date: Thu, 28 Jul 2022 09:34:14 +0800 Subject: [PATCH 2/2] Update setup.py upgrade to v0.2.5 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0686ee9..498aa26 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ setuptools.setup( name = 'PYMIC', - version = "0.2.4", + version = "0.2.5", author ='PyMIC Consortium', author_email = 'wguotai@gmail.com', description = description,