Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question #9

Open
Kamel-schbock opened this issue May 25, 2020 · 0 comments
Open

Question #9

Kamel-schbock opened this issue May 25, 2020 · 0 comments

Comments

@Kamel-schbock
Copy link

Hey,
I got this Attribute error in each iteration for validation (AttributeError: 'NoneType' object has no attribute 'debug') when i run the following command (python utils/run.py scripts/5fold.json run 0), can someone tell me how can i fix it?


AttributeError: 'NoneType' object has no attribute 'debug'
{'in_data': '/home/nadim/New_folder/fpl/dataset/id_list_20_200523_224307_20_sp5_2_5.joblib', 'nb_train': -1, 'nb_jobs': 8, 'nb_splits': 5, 'eval_split': 4, 'model': 'cnn_pose_scale', 'input_len': 10, 'offset_len': 10, 'pred_len': 10, 'inter_list': [256], 'last_list': [], 'channel_list': [32, 64, 128, 128], 'deconv_list': [256, 128, 64, 32], 'ksize_list': [3, 3, 3, 3], 'dc_ksize_list': [], 'pad_list': [], 'nb_iters': 17000, 'iter_snapshot': 1000, 'iter_display': 100, 'batch_size': 64, 'optimizer': 'adam', 'lr': 0.1, 'lr_step_list': [5000.0, 10000.0, 15000.0], 'momentum': 0.99, 'resume': '', 'gpu': 0, 'debug': False, 'save_model': True, 'root_dir': 'experiments/5fold_200525_125621', 'width': 1280, 'height': 960, 'nb_grids': 6, 'seed': 1701, 'ego_type': 'sfm'}
Written to experiments/5fold_200525_125621/200525_133543
(40697, 10, 3)
(4359, 10, 3)
Mean: [640. 476.23620605 88.28755904], std: [227.59802246 65.00177002 52.73033192]
Training...
Iter 100: train loss 0.17798095643520356 / ADE 65.36034065671691 / FDE 101.41946888393878
Iter 200: train loss 0.15064902376383543 / ADE 62.75962400748375 / FDE 99.8640135618982
Iter 300: train loss 0.1392264042297999 / ADE 61.809817243833734 / FDE 99.2911410397306
Iter 400: train loss 0.13131676346063614 / ADE 60.87275406348973 / FDE 98.3259347776871
Iter 500: train loss 0.12571735844016074 / ADE 60.07136064207583 / FDE 97.22905026068388
Iter 600: train loss 0.12190508601566155 / ADE 59.57449066779865 / FDE 96.50813022546377
Iter 700: train loss 0.11874980015414102 / ADE 59.16542266578101 / FDE 95.77722963033906
Iter 800: train loss 0.11531572548672557 / ADE 58.61566528412581 / FDE 94.91023660694582
Iter 900: train loss 0.11308432443274392 / ADE 58.282750012564264 / FDE 94.27236034229271
Validation...
Iter 1000: train loss 0.11086370994895697 / ADE 57.85381931721076 / FDE 93.57552330475177, valid loss 0.09034322832231813 / ADE 54.58597528881262 / FDE 89.0412924075012, elapsed time: 35.992351055145264 (s)
Traceback (most recent call last):
File "train_cv.py", line 125, in
valid_eval.update_summary(summary, iter_cnt, ["loss", "ade", "fde"])
File "/home/nadim/New_folder/fpl/utils/evaluation.py", line 61, in update_summary
summary.write()
File "/home/nadim/New_folder/fpl/utils/summary_logger.py", line 57, in write
current = current.loc[:, current.columns.union(new_summary.columns)]
File "/home/nadim/anaconda3/envs/p3/lib/python3.7/site-packages/pandas/core/indexing.py", line 1762, in getitem
return self._getitem_tuple(key)
File "/home/nadim/anaconda3/envs/p3/lib/python3.7/site-packages/pandas/core/indexing.py", line 1289, in _getitem_tuple
retval = getattr(retval, self.name)._getitem_axis(key, axis=i)
File "/home/nadim/anaconda3/envs/p3/lib/python3.7/site-packages/pandas/core/indexing.py", line 1954, in _getitem_axis
return self._getitem_iterable(key, axis=axis)
File "/home/nadim/anaconda3/envs/p3/lib/python3.7/site-packages/pandas/core/indexing.py", line 1595, in _getitem_iterable
keyarr, indexer = self._get_listlike_indexer(key, axis, raise_missing=False)
File "/home/nadim/anaconda3/envs/p3/lib/python3.7/site-packages/pandas/core/indexing.py", line 1553, in _get_listlike_indexer
keyarr, indexer, o._get_axis_number(axis), raise_missing=raise_missing
File "/home/nadim/anaconda3/envs/p3/lib/python3.7/site-packages/pandas/core/indexing.py", line 1655, in _validate_read_indexer
"Passing list-likes to .loc or [] with any missing labels "
KeyError: 'Passing list-likes to .loc or [] with any missing labels is no longer supported, see https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#deprecate-loc-reindex-listlike'
Exception ignored in: <function Iterator.del at 0x7f767cb81200>
Traceback (most recent call last):
File "/home/nadim/anaconda3/envs/p3/lib/python3.7/site-packages/chainer/dataset/iterator.py", line 36, in del
File "/home/nadim/anaconda3/envs/p3/lib/python3.7/site-packages/chainer/iterators/multithread_iterator.py", line 88, in finalize
File "/home/nadim/anaconda3/envs/p3/lib/python3.7/multiprocessing/pool.py", line 545, in terminate
AttributeError: 'NoneType' object has no attribute 'debug'
Exception ignored in: <function Iterator.del at 0x7f767cb81200>
Traceback (most recent call last):
File "/home/nadim/anaconda3/envs/p3/lib/python3.7/site-packages/chainer/dataset/iterator.py", line 36, in del
File "/home/nadim/anaconda3/envs/p3/lib/python3.7/site-packages/chainer/iterators/multithread_iterator.py", line 88, in finalize
File "/home/nadim/anaconda3/envs/p3/lib/python3.7/multiprocessing/pool.py", line 545, in terminate
AttributeError: 'NoneType' object has no attribute 'debug'


Another Question: how can i prepare datasets from my raw video?
I searched for that in internet and what i find: I can extract the frames of a raw videos and store the pixel values in csv file.
But how can i obtain the following datasets: (poses, trajectories and egomotion)?
I appreciate your help.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant