mchengny / RWF2000-Video-Database-for-Violence-Detection

A large scale video database for violence detection, which has 2,000 video clips containing violent or non-violent behaviours.
402 stars 85 forks source link

ValueError: bad marshal data (unknown type code) #13

Closed Shady-Abdelaziz closed 2 years ago

Shady-Abdelaziz commented 2 years ago

when i try to run pre-trained mdel i got error in load_model

Traceback (most recent call last): File "C:\Users\DELL\Downloads\Violence_Video_Detection-ML--main\predict_violence.py", line 19, in model = load_model('keras_model.h5') File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\keras\utils\traceback_utils.py", line 67, in error_handler raise e.with_traceback(filtered_tb) from None File "C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\keras\utils\generic_utils.py", line 793, in func_load code = marshal.loads(raw_code) ValueError: bad marshal data (unknown type code)

huhm commented 1 year ago

I've this problem too. Have you fixed this problem ?

huhm commented 1 year ago

I‘m using the python 3.9.12