Skip to content

Commit

Permalink
Import pydicom more robustly
Browse files Browse the repository at this point in the history
  • Loading branch information
lishen committed Dec 7, 2019
1 parent d4157e2 commit e95c1f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dm_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
from keras.utils.np_utils import to_categorical
import keras.backend as K
import cv2
import dicom
try:
import dicom
except ImportError:
import pydicom as dicom
from dm_preprocess import DMImagePreprocessor as prep
data_format = K.image_data_format()

Expand Down

0 comments on commit e95c1f9

Please sign in to comment.