hf2vad
hf2vad copied to clipboard
ValueError: setting an array element with a sequence
Run the following command: python extract_bboxes.py --proj_root=/data1/zhouwx/hf2vad-master/ --dataset_name=ped2 --mode=train
Problem:
Traceback (most recent call last):
File "data/hf2vad-master/extract_bboxes.py", line 161, in
Should I change the npyio.py to "arr = np.asanyarray(arr, dtype=object)" to solve this problem?
The problem seems to be solved by changing the code. By the way, can this work detect specific anomalies in the video, like 'video anomaly localization'? For example, how the red bonding boxes in the Fig5 come about? Are they manually marked? Thanks a lot if any body can answer this question!