kritsg commited on
Commit
f71417b
1 Parent(s): 0554f4e

changing data_routines.py

Browse files
Files changed (1) hide show
  1. bayes/data_routines.py +1 -2
bayes/data_routines.py CHANGED
@@ -121,8 +121,7 @@ def get_PIL_transf():
121
 
122
  def load_image(pil_image):
123
  """Loads an image by path."""
124
- with Image.open(pil_image) as img:
125
- return img.convert('RGB')
126
 
127
  def get_imagenet(pil_image, get_label=True):
128
  """Gets the imagenet data.
 
121
 
122
  def load_image(pil_image):
123
  """Loads an image by path."""
124
+ return pil_image.convert('RGB')
 
125
 
126
  def get_imagenet(pil_image, get_label=True):
127
  """Gets the imagenet data.