resize_videos.py get ValueError: invalid literal for int() with base 10: '' #2813
Unanswered
automatic114
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am resizing the kinetics400 dataset. The full error is:
"""
Traceback (most recent call last):
File "/home/user/anaconda3/envs/openmmlab/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/home/user/anaconda3/envs/openmmlab/lib/python3.8/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "../resize_videos.py", line 36, in resize_videos
w, h = [int(d) for d in result.readline().rstrip().split(',')]
File "../resize_videos.py", line 36, in
w, h = [int(d) for d in result.readline().rstrip().split(',')]
ValueError: invalid literal for int() with base 10: ''
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "../resize_videos.py", line 122, in
pool.map(resize_videos, zip(fullpath_list, vid_list))
File "/home/user/anaconda3/envs/openmmlab/lib/python3.8/multiprocessing/pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/home/user/anaconda3/envs/openmmlab/lib/python3.8/multiprocessing/pool.py", line 771, in get
raise self._value
ValueError: invalid literal for int() with base 10: ''
It should be a missing char to cause the int convrting error, but the dataset videos can be played normaly.
Beta Was this translation helpful? Give feedback.
All reactions