Spaces:
Runtime error
Runtime error
changing data_routines.py
Browse files- 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 |
-
|
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.
|