dmlc / dmlc/decord

error after fixed #138

Open
#143 4 comments 2 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.5k
Forks
232
PR merge metrics
No merged PRs in 30d

Description

Really thanks for updating the code. But I still meet error after getting the most recent version. And where should I export the DECORD_EOF_RETRY_MAX=20480 to try? Thanks

python3 experiment.py --data_config config/indoor_short.data --k 20 --conf 0.1 --score_func count
Namespace(budget=1000, conf='0.1', data_config='config/indoor_short.data', gpu=0, k='20', log='log/log_*', order=None, record='result/record', score_func='count', skip_infer=False, skip_split=False, skip_topk=False, skip_train=False, window='1')
Namespace(data_config='config/indoor_short.data', equal_interval=False, gpu=0, random_seed=0, score_func='count')
[EXP]split_time: 192.74919438362122
epoch 1/10: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 9/9 [01:34<00:00, 10.53s/it]
epoch 2/10: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 9/9 [00:01<00:00, 4.74it/s]
epoch 3/10: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 9/9 [00:01<00:00, 4.73it/s]
epoch 4/10: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 9/9 [00:01<00:00, 4.74it/s]
epoch 5/10: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 9/9 [00:01<00:00, 4.73it/s]
epoch 6/10: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 9/9 [00:01<00:00, 4.72it/s]
epoch 7/10: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 9/9 [00:01<00:00, 4.73it/s]
epoch 8/10: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 9/9 [00:01<00:00, 4.72it/s]
epoch 9/10: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 9/9 [00:01<00:00, 4.70it/s]
epoch 10/10: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 9/9 [00:01<00:00, 4.71it/s]
Detecting objects: 64%|██████████████████████████████████████████████████████████████████████████████████████████████▍ | 30/47 [05:53<03:18, 11.67s/it]Exception in thread Thread-3:
Traceback (most recent call last):
File "/home/wlai/.pyenv/versions/3.8.7/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/home/wlai/.pyenv/versions/3.8.7/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/wlai/wlai_backup/video-analytic/utils/datasets.py", line 350, in loader_thread
imgs = video_reader.get_batch(batch_idx)
File "/home/wlai/wlai_backup/video-analytic/utils/video_reader.py", line 57, in get_batch
return self._vr.get_batch(batch).permute(0, 3, 1, 2).contiguous().float().div(255)
File "/home/wlai/.local/lib/python3.8/site-packages/decord-0.5.2-py3.8-linux-x86_64.egg/decord/video_reader.py", line 175, in get_batch
arr = _CAPI_VideoReaderGetBatch(self._handle, indices)
File "/home/wlai/.local/lib/python3.8/site-packages/decord-0.5.2-py3.8-linux-x86_64.egg/decord/_ffi/_ctypes/function.py", line 173, in __call__
check_call(_LIB.DECORDFuncCall(
File "/home/wlai/.local/lib/python3.8/site-packages/decord-0.5.2-py3.8-linux-x86_64.egg/decord/_ffi/base.py", line 78, in check_call
raise DECORDError(err_str)
decord._ffi.base.DECORDError: [14:48:04] /home/wlai/decord/src/video/video_reader.cc:444: [/home/wlai/wlai_backup/resized_video/indoor_short.mp4]Unable to handle EOF because it takes too long to retrieve last few frames and `DECORD_EOF_RETRY_MAX=10240`. You may override the limit by `export DECORD_EOF_RETRY_MAX=20480` for example to allow more EOF retry attempts, exit...

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with utils/datasets.py at loader_thread and utils/video_reader.py at get_batch, then inspect the reported decord VideoReader failure and reproduce it with the experiment.py command and indoor_short.mp4. Done means determining whether the EOF retry setting is used correctly or the error remains reproducible, with the expected invocation or fix clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.