harshtikuu / Abnormal_Event_Detection

Abnormal Event Detection in Videos using SpatioTemporal AutoEncoder
174 stars 87 forks source link

ValueError: not enough values to unpack (expected 3, got 1) #10

Open Maryleen opened 6 years ago

Maryleen commented 6 years ago

When running processor.py I'm having the following error:

a, b, c =imagestore.shape

ValueError: not enough values to unpack (expected 3, got 1)

harshtikuu commented 6 years ago

Hi Maryleen, perform a git pull on the repository. And run processor.py with path to training directory and the frames per second rate.

kli017 commented 6 years ago

I run the processor.py with training directory and fps and got the same error. the shape of imagestore is (0,)

Arfinul commented 6 years ago

I was getting same error. Got resolved, when when installed "ffmpeg". Before it was not installed. After installing, also set "ffmpeg" in the path environment.

wassimassi commented 6 years ago

i got the same error and i installed "ffmpeg" also set "ffmpeg" in the path environment. but the error still found

AndyHon commented 5 years ago

@wassimassi @Maryleen hi,Have you solved this problem? How did you solve it?

AndyHon commented 5 years ago

@blackeagle01 I have installed FFmpeg, why do I still have this problem? How can I solve it? sh: 1: ffmpeg: not found sh: 1: ffmpeg: not found sh: 1: ffmpeg: not found sh: 1: ffmpeg: not found sh: 1: ffmpeg: not found sh: 1: ffmpeg: not found sh: 1: ffmpeg: not found sh: 1: ffmpeg: not found sh: 1: ffmpeg: not found sh: 1: ffmpeg: not found sh: 1: ffmpeg: not found sh: 1: ffmpeg: not found sh: 1: ffmpeg: not found sh: 1: ffmpeg: not found sh: 1: ffmpeg: not found sh: 1: ffmpeg: not found sh: 1: ffmpeg: not found Traceback (most recent call last): File "/home/p18301147/Abnormal-Detection/Abnormal_Event_Detection-master/processor.py", line 85, in a,b,c=imagestore.shape ValueError: not enough values to unpack (expected 3, got 1)

Maryleen commented 5 years ago

@wassimassi @Maryleen hi,Have you solved this problem? How did you solve it?

I realised that to fix the 'not enough values to unpack' error I should be running the code on the command line not via the IPython console.

How I solved the 'ffmpeg' error was first to install the ffmpeg

But after installing I was still getting the error message. I spent a long time trying to get this program to work and it was fruitless. I had done everything I imagined to be right. I followed all the steps correctly but still couldn't get it to work. Searched online for technical solutions until I came across the least expected advice: "Try log out and back in, or reboot." http://adaptivesamples.com/how-to-install-ffmpeg-on-windows/

Good luck!

Sagar1998 commented 2 years ago

the error is because you guys didnt see train_path properly, i have declared another train_path_1 = " /train/dataset/training_videos" and used it in the ffmpeg one worked for me

AndyHon commented 2 years ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

Garima0505 commented 2 years ago

a,b,c=store_image.shape ValueError: not enough values to unpack (expected 3, got 1)

AndyHon commented 2 years ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。