broadinstitute / keras-rcnn

Keras package for region-based convolutional neural networks (RCNNs)
Other
552 stars 224 forks source link

KeyError when trying out the Example #205

Open Gindo70 opened 6 years ago

Gindo70 commented 6 years ago

Hi,

when i try to run following Code from the Example i get a KeyError.

training_dictionary, test_dictionary = keras_rcnn.datasets.shape.load_data()

KeyError                                  Traceback (most recent call last)
<ipython-input-1-eb62b4b51859> in <module>()
      5 import keras_rcnn.preprocessing
      6 
----> 7 training_dictionary, test_dictionary = keras_rcnn.datasets.shape.load_data()

~/anaconda3/lib/python3.5/site-packages/keras_rcnn-0.0.2-py3.5.egg/keras_rcnn/datasets/shape.py in load_data()
     11     resource_path = "/".join(["data", "schema.json"])
     12 
---> 13     with open(pkg_resources.resource_filename("keras_rcnn", resource_path)) as stream:
     14         schema = json.load(stream)
     15 

~/anaconda3/lib/python3.5/site-packages/pkg_resources/__init__.py in resource_filename(self, package_or_requirement, resource_name)
   1135         """Return a true filesystem path for specified resource"""
   1136         return get_provider(package_or_requirement).get_resource_filename(
-> 1137             self, resource_name
   1138         )
   1139 

~/anaconda3/lib/python3.5/site-packages/pkg_resources/__init__.py in get_resource_filename(self, manager, resource_name)
   1644             for name in eagers:
   1645                 self._extract_resource(manager, self._eager_to_zip(name))
-> 1646         return self._extract_resource(manager, zip_path)
   1647 
   1648     @staticmethod

~/anaconda3/lib/python3.5/site-packages/pkg_resources/__init__.py in _extract_resource(self, manager, zip_path)
   1665             return os.path.dirname(last)
   1666 
-> 1667         timestamp, size = self._get_date_and_size(self.zipinfo[zip_path])
   1668 
   1669         if not WRITE_SUPPORT:

KeyError: 'keras_rcnn/data/schema.json'

Any help is appreciated.

jhung0 commented 6 years ago

Hmm. What version of keras?

On Thu, Jun 21, 2018, 10:24 AM Gindo70 notifications@github.com wrote:

Hi,

when i try to run following Code from the Example i get a KeyError.

training_dictionary, test_dictionary = keras_rcnn.datasets.shape.load_data()

KeyError Traceback (most recent call last)

in () 5 import keras_rcnn.preprocessing 6 ----> 7 training_dictionary, test_dictionary = keras_rcnn.datasets.shape.load_data() ~/anaconda3/lib/python3.5/site-packages/keras_rcnn-0.0.2-py3.5.egg/keras_rcnn/datasets/shape.py in load_data() 11 resource_path = "/".join(["data", "schema.json"]) 12 ---> 13 with open(pkg_resources.resource_filename("keras_rcnn", resource_path)) as stream: 14 schema = json.load(stream) 15 ~/anaconda3/lib/python3.5/site-packages/pkg_resources/__init__.py in resource_filename(self, package_or_requirement, resource_name) 1135 """Return a true filesystem path for specified resource""" 1136 return get_provider(package_or_requirement).get_resource_filename( -> 1137 self, resource_name 1138 ) 1139 ~/anaconda3/lib/python3.5/site-packages/pkg_resources/__init__.py in get_resource_filename(self, manager, resource_name) 1644 for name in eagers: 1645 self._extract_resource(manager, self._eager_to_zip(name)) -> 1646 return self._extract_resource(manager, zip_path) 1647 1648 @staticmethod ~/anaconda3/lib/python3.5/site-packages/pkg_resources/__init__.py in _extract_resource(self, manager, zip_path) 1665 return os.path.dirname(last) 1666 -> 1667 timestamp, size = self._get_date_and_size(self.zipinfo[zip_path]) 1668 1669 if not WRITE_SUPPORT: KeyError: 'keras_rcnn/data/schema.json' Any help is appreciated. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub , or mute the thread .