Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions batchflow/batch_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
except ImportError:
pass

from scipy.ndimage.filters import gaussian_filter
from scipy.ndimage.interpolation import map_coordinates
from scipy.ndimage import gaussian_filter, map_coordinates

from .batch import Batch
from .decorators import action, apply_parallel, inbatch_parallel
Expand Down
2 changes: 1 addition & 1 deletion batchflow/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ class GPUResourceMonitor(ResourceMonitor):
""" If the `CUDA_VISIBLE_DEVICES` is set, check it and return device numbers. Otherwise, return [0]. """
def __init__(self, function=None, frequency=0.1, gpu_list=None, **kwargs):
if pynvml is None:
raise ImportError('Install Python interface for pynvml')
raise ImportError('Install nvidia-ml-py to use GPU monitoring functionality')
super().__init__(function=function, frequency=frequency, **kwargs)

# Fallback to env variable
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ research = [

monitor = [
"psutil",
"pynvml"
"nvidia-ml-py"
]

nn = [
Expand Down