microsoft / AutonomousDrivingCookbook

Scenarios, tutorials and demos for Autonomous Driving
MIT License
2.3k stars 563 forks source link

ValueError: Cannot create group in read only mode #110

Open RohDonghyeon opened 4 years ago

RohDonghyeon commented 4 years ago

ValueError Traceback (most recent call last)

in ----> 1 model = load_model(MODEL_PATH) 2 3 client = CarClient() 4 client.confirmConnection() 5 client.enableApiControl(True) ~\Anaconda3\envs\AirSimAuto\lib\site-packages\keras\engine\saving.py in load_model(filepath, custom_objects, compile) 417 f = h5dict(filepath, 'r') 418 try: --> 419 model = _deserialize_model(f, custom_objects, compile) 420 finally: 421 if opened_new_file: ~\Anaconda3\envs\AirSimAuto\lib\site-packages\keras\engine\saving.py in _deserialize_model(f, custom_objects, compile) 219 return obj 220 --> 221 model_config = f['model_config'] 222 if model_config is None: 223 raise ValueError('No model found in config.') ~\Anaconda3\envs\AirSimAuto\lib\site-packages\keras\utils\io_utils.py in __getitem__(self, attr) 300 else: 301 if self.read_only: --> 302 raise ValueError('Cannot create group in read only mode.') 303 val = H5Dict(self.data.create_group(attr)) 304 return val ValueError: Cannot create group in read only mode. How i solve this problem.