Skip to content

Commit caa847d

Browse files
Merge pull request #16 from diffgram/make-tensorflow-optional
Make tensorflow optional & fix setup imageio
2 parents dcd9753 + b2a0692 commit caa847d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

sdk/diffgram/core/directory.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from diffgram.file.file import File
22
from ..regular.regular import refresh_from_dict
33
import logging
4-
from diffgram.tensorflow_diffgram.diffgram_tensorflow_dataset import DiffgramTensorflowDataset
54
from diffgram.core.diffgram_dataset_iterator import DiffgramDatasetIterator
65
from multiprocessing.pool import ThreadPool as Pool
76

@@ -166,6 +165,7 @@ def to_pytorch(self, transform = None):
166165
return pytorch_dataset
167166

168167
def to_tensorflow(self):
168+
from diffgram.tensorflow_diffgram.diffgram_tensorflow_dataset import DiffgramTensorflowDataset
169169
file_id_list = self.file_id_list
170170
diffgram_tensorflow_dataset = DiffgramTensorflowDataset(
171171
project = self.client,

sdk/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ six>=1.9.0
55
tensorflow>=1.12.0
66
pillow
77
torch
8-
imageio
8+
imageio>=2.9.0

sdk/setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
'opencv-python>=4.0.0.21',
2626
'scipy>=1.1.0',
2727
'six>=1.9.0',
28-
'pillow>=6.1.0'
28+
'pillow>=6.1.0',
29+
'imageio>=2.9.0'
2930
]
3031
)

0 commit comments

Comments
 (0)