This is a problem that comes up all the time when dividing data sets by emoji labels.
The code is:
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:
- Python3-ValueError:not enough values to unpack (expected 2, got 0)
- ValueError: not enough values to unpack (expected 2, got 0)
- Error occurred when Python called cv2.findcontours: valueerror: not enough values to unpack (expected 3, got 2)
- Error: improvement of not enough values to unpack (expected 2, got 1)
- for k, v in k_map: ValueError: too many values to unpack (expected 2)
- ValueError: need more than 0 values to unpack
- ValueError: too many values to unpack
- valueError: Length mismatch: Expected axis has 40 elements, new values have 38 elements
- [solved] error: valueerror: expected 2D array, got scalar array instead
- ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 256,
- ValueError: num_samples should be a positive integer value, but got num_samp=0
- Git push failed, prompt unpack error / unpack failed solution
- raise ValueError(‘Expected input batch_size ({}) to match target batch_size ({}).‘
- Android:More than one file was found with OS independent path ‘res/values/values.xml
- [Solved] RuntimeError: Expected object of scalar type Float but got scalar type Double for argument #2 ‘mat1‘
- Ora-00947: not enough values
- ValueError: Integers to negative integer powers are not allowed.
- yaml.scanner.ScannerError: mapping values are not allowed here
- RuntimeError: Expected hidden[0] size (x, x, x), got(x, x, x)
- Docker encountered a problem 4: yaml: Line 1: mapping values are not allowed in this context