Emotion-FAN icon indicating copy to clipboard operation
Emotion-FAN copied to clipboard

FileNotFoundError: [Errno 2]

Open regilim opened this issue 5 years ago • 9 comments

FileNotFoundError: [Errno 2] No such file or directory: './Data/Train/Fear/013736360.avi' ? I noticed there's no folder named Train in Data folder

regilim avatar Oct 06 '19 04:10 regilim

Yes, we are no right to publish the dataset. If you want the AFEW dataset you can send an apply email to the official. The email is [email protected]. PS: Could you please star my project?

Open-Debin avatar Oct 08 '19 07:10 Open-Debin

even after downloading the data I get the same error.

rshivansh avatar Feb 11 '20 01:02 rshivansh

Please notice 1、your data path in disk. 2、your data path in the code3、data list 4 、the relevant code at DebinMeng_train.py error only at these 4 points.

Also, I give an idea. Maybe your data path in the disk is ./Data/Train/Fear/013736360 rather than ./Data/Train/Fear/013736360.avi. '1.’ and '2.' should be consistent.

Plus, could you please give me a star? thanks!!

Open-Debin avatar Feb 16 '20 09:02 Open-Debin

hi, shouldn't the data be like ./Data/Train/Fear/013736360/ 1.jpg 2.jpg 3.jpg (these are the frames).

I have starred.

rshivansh avatar Feb 16 '20 14:02 rshivansh

hi, shouldn't the data be like ./Data/Train/Fear/013736360/ 1.jpg 2.jpg 3.jpg (these are the frames).

I have starred.

how u convert this video into img? frame by frame?

LeiiY avatar Mar 12 '20 09:03 LeiiY

You can use ffmpeg our Opencv to convert video into image. Many instructions online. Give me a star, thanks. @LeiiY

Open-Debin avatar Mar 12 '20 09:03 Open-Debin

You can use ffmpeg our Opencv to convert video into image. Many instructions online. Give me a star, thanks. @LeiiY

so after convert to img,should i detect faces and cut them into 224*224 or just start trainning?i used dlib,but failed detecting faces in many frames

LeiiY avatar Mar 13 '20 04:03 LeiiY

When running the following code:

`with open(video_list, 'r') as imf: index = [] for id, line in enumerate(imf):

        video_label = line.strip().split()

        video_name = video_label[0]  # name of video
        label = rectify_label[video_label[1]]  # label of video

        video_path = os.path.join(video_root, video_name)  # video_path is the path of each video
        ###  for sampling triple imgs in the single video_path  ####

        img_lists = os.listdir(video_path)
        img_lists.sort()  # sort files by ascending
        img_count = len(img_lists)  # number of frames in video
        num_per_part = int(img_count) // 3`

I get the following error: FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:/Users/m_rayeni/Emotion-FAN/Data/Train/Fear/013736360'

So what is wrong here?

mahdirayeni avatar Nov 04 '20 14:11 mahdirayeni

@LeiiY @rshivansh @regilim @mahdirayeni Merry Christmas, I recently update the Emotion-FAN, new features include data process, environment install, CK+ code, Baseline code, and more detail instructions. Also, you can find the old version directory of Emotion-FAN in the README.md. I hope my new updates can help you greatly. Please see the Emotion-FAN for more details.

Open-Debin avatar Dec 27 '20 01:12 Open-Debin