Getting this error on running the Pre-process the input on demo.ipynb
`---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
~/.virtualenvs/test/lib/python3.6/site-packages/IPython/core/formatters.py in __call__(self, obj)
339 pass
340 else:
--> 341 return printer(obj)
342 # Finally look for special method names
343 method = get_real_method(obj, self.print_method)
~/.virtualenvs/test/lib/python3.6/site-packages/IPython/core/pylabtools.py in
236
237 if 'png' in formats:
--> 238 png_formatter.for_type(Figure, lambda fig: print_figure(fig, 'png', *kwargs))
239 if 'retina' in formats or 'png2x' in formats:
240 png_formatter.for_type(Figure, lambda fig: retina_figure(fig, *kwargs))
~/.virtualenvs/test/lib/python3.6/site-packages/IPython/core/pylabtools.py in print_figure(fig, fmt, bbox_inches, *kwargs)
120
121 bytes_io = BytesIO()
--> 122 fig.canvas.print_figure(bytes_io, *kw)
123 data = bytes_io.getvalue()
124 if fmt == 'svg':
~/.virtualenvs/test/lib/python3.6/site-packages/matplotlib/backend_bases.py in print_figure(self, filename, dpi, facecolor, edgecolor, orientation, format, *kwargs)
2214 orientation=orientation,
2215 dryrun=True,
-> 2216 *kwargs)
2217 renderer = self.figure._cachedRenderer
2218 bbox_inches = self.figure.get_tightbbox(renderer)
~/.virtualenvs/test/lib/python3.6/site-packages/matplotlib/backends/backend_agg.py in print_png(self, filename_or_obj, args, *kwargs)
505
506 def print_png(self, filename_or_obj, args, *kwargs):
--> 507 FigureCanvasAgg.draw(self)
508 renderer = self.get_renderer()
509 original_dpi = renderer.dpi
~/.virtualenvs/test/lib/python3.6/site-packages/matplotlib/backends/backend_agg.py in draw(self)
428 if toolbar:
429 toolbar.set_cursor(cursors.WAIT)
--> 430 self.figure.draw(self.renderer)
431 finally:
432 if toolbar:
~/.virtualenvs/test/lib/python3.6/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, args, *kwargs)
53 renderer.start_filter()
54
---> 55 return draw(artist, renderer, args, *kwargs)
56 finally:
57 if artist.get_agg_filter() is not None:
~/.virtualenvs/test/lib/python3.6/site-packages/matplotlib/figure.py in draw(self, renderer)
1297
1298 mimage._draw_list_compositing_images(
-> 1299 renderer, self, artists, self.suppressComposite)
1300
1301 renderer.close_group('figure')
~/.virtualenvs/test/lib/python3.6/site-packages/matplotlib/image.py in _draw_list_compositing_images(renderer, parent, artists, suppress_composite)
136 if not_composite or not has_images:
137 for a in artists:
--> 138 a.draw(renderer)
139 else:
140 # Composite any adjacent images together
~/.virtualenvs/test/lib/python3.6/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, args, *kwargs)
53 renderer.start_filter()
54
---> 55 return draw(artist, renderer, args, *kwargs)
56 finally:
57 if artist.get_agg_filter() is not None:
~/.virtualenvs/test/lib/python3.6/site-packages/matplotlib/axes/_base.py in draw(self, renderer, inframe)
2435 renderer.stop_rasterizing()
2436
-> 2437 mimage._draw_list_compositing_images(renderer, self, artists)
2438
2439 renderer.close_group('axes')
~/.virtualenvs/test/lib/python3.6/site-packages/matplotlib/image.py in _draw_list_compositing_images(renderer, parent, artists, suppress_composite)
136 if not_composite or not has_images:
137 for a in artists:
--> 138 a.draw(renderer)
139 else:
140 # Composite any adjacent images together
~/.virtualenvs/test/lib/python3.6/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, args, *kwargs)
53 renderer.start_filter()
54
---> 55 return draw(artist, renderer, args, *kwargs)
56 finally:
57 if artist.get_agg_filter() is not None:
~/.virtualenvs/test/lib/python3.6/site-packages/matplotlib/image.py in draw(self, renderer, args, *kwargs)
553 else:
554 im, l, b, trans = self.make_image(
--> 555 renderer, renderer.get_image_magnification())
556 if im is not None:
557 renderer.draw_image(gc, l, b, im)
~/.virtualenvs/test/lib/python3.6/site-packages/matplotlib/image.py in make_image(self, renderer, magnification, unsampled)
780 return self._make_image(
781 self._A, bbox, transformed_bbox, self.axes.bbox, magnification,
--> 782 unsampled=unsampled)
783
784 def _check_unsampled_image(self, renderer):
~/.virtualenvs/test/lib/python3.6/site-packages/matplotlib/image.py in _make_image(self, A, in_bbox, out_bbox, clip_bbox, magnification, unsampled, round_to_pixel_border)
471 # (of int or float)
472 # or an RGBA array of re-sampled input
--> 473 output = self.to_rgba(output, bytes=True, norm=False)
474 # output is now a correctly sized RGBA array of uint8
475
~/.virtualenvs/test/lib/python3.6/site-packages/matplotlib/cm.py in to_rgba(self, x, alpha, bytes, norm)
255 if xx.dtype.kind == 'f':
256 if norm and xx.max() > 1 or xx.min() < 0:
--> 257 raise ValueError("Floating point image RGB values "
258 "must be in the 0..1 range.")
259 if bytes:
ValueError: Floating point image RGB values must be in the 0..1 range.
You need matplotlib 2.0.2, just run pip install matplotlib==2.0.2
Taken from: https://github.com/matterport/Mask_RCNN/issues/69
Most helpful comment
You need matplotlib 2.0.2, just run
pip install matplotlib==2.0.2Taken from: https://github.com/matterport/Mask_RCNN/issues/69