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

potential problem in code #11

Closed
xweiyuan opened this issue Dec 18, 2019 · 2 comments
Closed

potential problem in code #11

xweiyuan opened this issue Dec 18, 2019 · 2 comments

Comments

@xweiyuan
Copy link

I think t_step = np.random.randint(max_t_step) + 1 in ./data/base_dataset.py would throw an error when cur_seq_len equals to 1.

Maybe an if-clause like if max_t_step==0: t_step=1 should be added to avoid crash while training?

@tcwang0509
Copy link
Contributor

cur_seq_len shouldn't really be 1, which means the video only consists of one frame. But I guess there's no hurt checking that too. Thanks for the info!

@xweiyuan
Copy link
Author

Thanks for your reply and great work.
Besides, the code will throw out dimension mismatching error while fetching data as bellow:

'invalid argument 0: Sizes of tensors must match except in dimension 0. Got 4 and 3 in dimension 1 at /opt/conda/conda-bld/pytorch_1573049306803/work/aten/src/TH/generic/THTensor.cpp:689'

Maybe it is better to filter out the video sequences which is too short, like less than the seq_len_max ?

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

2 participants