IndexError on ensemble.py
See original GitHub issueHello,
I have trained the joint and bone model for NTU120 and now I want to ensemble their results, therefore I am running the following command:
python ensemble.py --dataset ntu120/xsub --joint-dir work_dir/ntu120/xsub/msg3d_joint/ --bone-dir work_dir/ntu120/xsub/msg3d_bone/
But I am having this error:
Traceback (most recent call last): File “ensemble.py”, line 44, in <module> _, r11 = r1[i] IndexError: list index out of range
I have printed the length of those lists and I found that r1
and r2
have different length than label
:
label: 101838 r1: 50919 r2: 50919
Can you help solving this issue?
Ps: I am using a CentOS Linux
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
scikit-learn AdaBoostRegressor IndexError: index 1 is out of ...
This is the python code that I'm trying to run. ... datasets from sklearn.ensemble import AdaBoostRegressor boston = datasets.load_boston() ...
Read more >Multithreading issue - IndexError · Issue #75 · flennerhag/mlens
When launching these, Python corrupts the thread state in child processes, so that each think more threads are available than what is the...
Read more >How to Fix IndexError in Python - Rollbar
The IndexError in Python occurs when an item from a list is attempted to be accessed that is outside the index range of...
Read more >Most Common Python Error Types in Data Science
IndexError happens when the index of a sequence is out of range. If you have a column with 3 elements, but you want...
Read more >Python – How to fix IndexError: invalid index to scalar variable ...
How to fix it? import pandas as pd import numpy as np from sklearn import ensemble from sklearn import cross_validation def ToWeight(y): w...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kenziyuliu thank you very much and sorry for giving you trouble!
I did not rembember changing the
ntu120_gendata.py
file, but I probably did it by accident.I have one more question, but I will make it a new topic since it is related to fine tuning.
It does look good to me, though I’ll just repeat that the content of
nturgbd_skeletons_s001_to_s017.zip
goes tonturgb+d_skeletons/
and the content ofnturgbd_skeletons_s018_to_s032.zip
goes tonturgb+d_skeletons120/
and you should be good.