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

Error in preparing the optical flow for re-training the model with Vimeo dataset, when run "python flow_generation/gen_flow.py -r data/vimeo_triplet" #10

Open
srwissac opened this issue Sep 4, 2023 · 3 comments

Comments

@srwissac
Copy link

srwissac commented Sep 4, 2023

Hi,
I encountered an issue when I want to prepare the optical flow data with Vimeo dataset.
Specifically, I downloaded the Vimeo dataset (vimeo_septuplet.zip) and unzipped (including rename) it as /mnt/data_nas/srwang/vimeo/vimeo_triplet/{readme.txt; sequences; tri_testlist.txt; tri_trainlist.txt}.
Following the illustration in https://github.com/MCG-NKU/AMT/blob/main/docs/develop.md to prepare the environment, I ran python flow_generation/gen_flow.py -r /mnt/data_nas/srwang/vimeo/vimeo_triplet. There is an error called "getopt.GetoptError: option -r not recognized".
The detailed snapshot for the bug is attached.
Thanks for your time and looking forward to your reply.

image

@srwissac
Copy link
Author

srwissac commented Sep 5, 2023

Hi,
I solved this problem by replacing the 32 line in run.py shown below:
from:
for strOption, strArgument in getopt.getopt(sys.argv[1:], '', [ strParameter[2:] + '=' for strParameter in sys.argv[1::2] ])[0]:
to:
for strOption, strArgument in getopt.getopt('', [ strParameter[2:] + '=' for strParameter in sys.argv[1::2] ])[0]:
Thanks a lot.

@Paper99
Copy link
Collaborator

Paper99 commented Sep 11, 2023

OK, thank you for providing a nice solution for us.

@huang-hz
Copy link

huang-hz commented Mar 6, 2024

It's a helpful solution

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

3 participants