61a0663a45beb2e59f6a549c51d55940c80734e3,niftynet/io/image_as_nibabel.py,,,#,11
Before Change
// It loads images slightly faster then PIL.
// Only use scikit-image if installed version is 0.13.0 or newer
from niftynet.utilities.util_import import require_module
SKIO = require_module("skimage.io", (0, 13, 0))
USE_SKIMAGE = True
tf.logging.info("+++ Using SKIMAGE as Image Loading backend")
except (ImportError, AssertionError):
tf.logging.info("+++ Using PIL as Image Loading backend")
After Change
dict(name="pillow", module="PIL.Image", method="open")
]
AVAILABLE_LOADER = OrderedDict()
for loader in EXTERNAL_LOADERS:
try:
// Default params
min_ver = loader.get("version", None)
args = loader.get("args", tuple())
kwargs = loader.get("kwargs", dict())
// Retrieve external function
external_module = require_module(loader["module"], min_version=min_ver)
external_function = getattr(external_module, loader["method"])
// Save loader params
loader_dict = dict(fn=external_function, args=args, kwargs=kwargs)
except (ImportError, AssertionError, AttributeError):
continue
AVAILABLE_LOADER[loader["name"]] = loader_dict
tf.logging.info("+++ Available Image Loaders {}:"
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: NifTK/NiftyNet
Commit Name: 61a0663a45beb2e59f6a549c51d55940c80734e3
Time: 2018-03-05
Author: rmaplue@ucl.ac.uk
File Name: niftynet/io/image_as_nibabel.py
Class Name:
Method Name:
Project Name: deepmipt/DeepPavlov
Commit Name: c15e52623156084fbd74727dd3f34df2825e2ad3
Time: 2018-10-29
Author: yoptar@gmail.com
File Name: deeppavlov/core/common/cross_validation.py
Class Name:
Method Name: calc_cv_score
Project Name: shenweichen/DeepCTR
Commit Name: e7bfb58ab7795bca341cbd0a763f6ec200f6315e
Time: 2019-02-17
Author: wcshen1994@163.com
File Name: deepctr/models/din.py
Class Name:
Method Name: get_input