You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to reproducing the experiments with the blazeit system, after faced the error from issue #6 and I can not fix it, I skip it and move to run the EBS sampling, then it gave another error, could you please help me with this too? Here is the step by step how did I run the experiment:
Reproduce problem:
Environment: prepared as requirements
Step 1: prepared jackson-town-square video and structure folders as the instruction. (succeed)
Step 2: Extract the videos into npy files by run command: python gen_small_vid.py --base_name jackson-town-square --date 2017-12-14 (succeed)
Step 3: run EBS sampling by run the command: python blazeit/aggregation/run_ebs_sampling.py --obj_name car --err_tol 0.01 --base_name jackson-town-square --test_date 2017-12-17 --train_date 2017-12-14 then it throw error as bellow:
Error:
Traceback (most recent call last):
File "blazeit/aggregation/run_ebs_sampling.py", line 96, in
main()
File "blazeit/aggregation/run_ebs_sampling.py", line 71, in main
Y_pred, Y_true = get_data(base_name, test_date, obj_name, data_path)
File "blazeit/aggregation/run_ebs_sampling.py", line 40, in get_data
trues = np.zeros(np.max(true_idx.index) + 1)
File "<array_function internals>", line 6, in amax
File "/opt/conda/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 2621, in amax
keepdims=keepdims, initial=initial, where=where)
File "/opt/conda/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 88, in _wrapreduction
return reduction(axis=axis, out=out, **passkwargs)
TypeError: max() got an unexpected keyword argument 'out'
The text was updated successfully, but these errors were encountered:
ducmanhnguyen
changed the title
[Error on run_ebs_sampling.py] TypeError: max() got an unexpected keyword argument 'out'
Error on run EBS sampling (step 3 of Reproducing experiments section)
Mar 9, 2021
I found out that the true_idx.index is an <class 'pandas.core.indexes.numeric.Int64Index'> array so somehow it incompatible with the function np.max() of the numpy . so I add a convert this array to numpy array by using function np.array() before doing the np.max() as bellow, then it work:
Hi,
I am trying to reproducing the experiments with the blazeit system, after faced the error from issue #6 and I can not fix it, I skip it and move to run the EBS sampling, then it gave another error, could you please help me with this too? Here is the step by step how did I run the experiment:
Reproduce problem:
python gen_small_vid.py --base_name jackson-town-square --date 2017-12-14
(succeed)python blazeit/aggregation/run_ebs_sampling.py --obj_name car --err_tol 0.01 --base_name jackson-town-square --test_date 2017-12-17 --train_date 2017-12-14
then it throw error as bellow:Error:
The text was updated successfully, but these errors were encountered: