You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~\anaconda3\envs\testforest\lib\site-packages\keras\engine\saving.py in load_wrapper(*args, **kwargs)
490 os.remove(tmp_filepath)
491 return res
--> 492 return load_function(*args, **kwargs)
493
494 return load_wrapper
~\anaconda3\envs\testforest\lib\site-packages\keras\engine\saving.py in load_model(filepath, custom_objects, compile)
581
582 if H5Dict.is_supported_type(filepath):
--> 583 with H5Dict(filepath, mode='r') as h5dict:
584 model = _deserialize_model(h5dict, custom_objects, compile)
585 elif hasattr(filepath, 'write') and callable(filepath.write):
Describe the bug
Getting error while using >> my_model.use_release() on windows 10 - 64 Bit
To Reproduce
Steps to reproduce the behavior:
from deepforest import deepforest
img_path = "/Users/NITIN/Documents/DeepForest Testing/crop3.png"
img = cv2.imread(img_path)
my_model = deepforest.deepforest()
my_model.use_release()
Environment (please complete the following information):
Screenshots

If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
ERROR DETAILS :
Reading config file: C:\Users\NITIN\anaconda3\envs\testforest\lib\site-packages\deepforest\data\deepforest_config.yml
A blank deepforest object created. To perform prediction, either train or load an existing model.
Model from DeepForest release https://github.com/weecology/DeepForest/releases/tag/1.0.0 was already downloaded. Loading model from file.
Loading pre-built model: https://github.com/weecology/DeepForest/releases/tag/1.0.0
OSError Traceback (most recent call last)
in
1 my_model = deepforest.deepforest()
----> 2 my_model.use_release()
~\anaconda3\envs\testforest\lib\site-packages\deepforest\deepforest.py in use_release(self, gpus)
169 # Suppress compilte warning, not relevant here
170 warnings.filterwarnings("ignore", category=UserWarning)
--> 171 self.model = utilities.read_model(self.weights, self.config)
172
173 # Convert model
~\anaconda3\envs\testforest\lib\site-packages\deepforest\utilities.py in read_model(model_path, config)
47 with warnings.catch_warnings():
48 # warnings.simplefilter('ignore', UserWarning)
---> 49 model = models.load_model(model_path, backbone_name='resnet50')
50
51 return model
~\anaconda3\envs\testforest\lib\site-packages\deepforest\keras_retinanet\models_init_.py in load_model(filepath, backbone_name)
81 """
82 import keras.models
---> 83 return keras.models.load_model(filepath, custom_objects=backbone(backbone_name).custom_objects)
84
85
~\anaconda3\envs\testforest\lib\site-packages\keras\engine\saving.py in load_wrapper(*args, **kwargs)
490 os.remove(tmp_filepath)
491 return res
--> 492 return load_function(*args, **kwargs)
493
494 return load_wrapper
~\anaconda3\envs\testforest\lib\site-packages\keras\engine\saving.py in load_model(filepath, custom_objects, compile)
581
582 if H5Dict.is_supported_type(filepath):
--> 583 with H5Dict(filepath, mode='r') as h5dict:
584 model = _deserialize_model(h5dict, custom_objects, compile)
585 elif hasattr(filepath, 'write') and callable(filepath.write):
~\anaconda3\envs\testforest\lib\site-packages\keras\utils\io_utils.py in init(self, path, mode)
189 self._is_file = False
190 elif isinstance(path, six.string_types) or _is_path_instance(path):
--> 191 self.data = h5py.File(path, mode=mode)
192 self._is_file = True
193 elif isinstance(path, dict):
~\anaconda3\envs\testforest\lib\site-packages\h5py_hl\files.py in init(self, name, mode, driver, libver, userblock_size, swmr, rdcc_nslots, rdcc_nbytes, rdcc_w0, track_order, **kwds)
406 fid = make_fid(name, mode, userblock_size,
407 fapl, fcpl=make_fcpl(track_order=track_order),
--> 408 swmr=swmr)
409
410 if isinstance(libver, tuple):
~\anaconda3\envs\testforest\lib\site-packages\h5py_hl\files.py in make_fid(name, mode, userblock_size, fapl, fcpl, swmr)
171 if swmr and swmr_support:
172 flags |= h5f.ACC_SWMR_READ
--> 173 fid = h5f.open(name, flags, fapl=fapl)
174 elif mode == 'r+':
175 fid = h5f.open(name, h5f.ACC_RDWR, fapl=fapl)
h5py_objects.pyx in h5py._objects.with_phil.wrapper()
h5py_objects.pyx in h5py._objects.with_phil.wrapper()
h5py\h5f.pyx in h5py.h5f.open()
OSError: Unable to open file (file signature not found)
The text was updated successfully, but these errors were encountered: