Spaces:
Runtime error
Runtime error
Zhao Xiaoming
commited on
Commit
·
688064e
1
Parent(s):
35bfce9
BGR2RGB
Browse files
demo.py
CHANGED
@@ -55,7 +55,7 @@ class ImageLoader(object):
|
|
55 |
img = cv2.imread(filename)
|
56 |
if img is None:
|
57 |
raise Exception('Error reading image %s' % filename)
|
58 |
-
|
59 |
return img
|
60 |
|
61 |
def __len__(self):
|
|
|
55 |
img = cv2.imread(filename)
|
56 |
if img is None:
|
57 |
raise Exception('Error reading image %s' % filename)
|
58 |
+
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
|
59 |
return img
|
60 |
|
61 |
def __len__(self):
|