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

This is a problem that comes up all the time when dividing data sets by emoji labels.
The code is:

angle, idx, _, gender, expression, gaze = image_name.split('_')

The format of image_name is: dataset000_01_caucasian_female_angry_left.jpg
There have been some errors running on the server

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

Solution:
Later, it was found that after decompressing the data set in the unified format, the zip file was not deleted after the execution of the unzip command, so it was not easy to find. The main reason for this problem is that the file name of the compressed price can not be divided into 6 parts, so the error has been reported.
Delete the ZIP file.

Read More: