-
Notifications
You must be signed in to change notification settings - Fork 112
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 Due to string literal in File Name #23
Comments
Had the same issue, so it happened that "all_files" was already sorted at this point, so simply commented out #all_files.sort. But I guess it's not something to count on for always happening, as it's probably a file-system / platform dependent thing :/ |
I commented out #all_files.sort but then when i open the bvh file, the motion capture data is completely out of order. Did you ever figure out a different solution besides just commenting out? |
Change the filename to an integer |
I didn't try |
just remove the int from the all_files sort line like this "all_files.sort(key=lambda x: x.split('/')[-1].split('.')[0])".It will work fine |
One of the errors that occur in step 3 is the following (Process the video )
File "hmr/demo.py", line 194, in
all_files.sort(key=lambda x: int(x.split('/')[-1].split('.')[0]))
ValueError: invalid literal for int() with base 10: 'abc002'
which is due to the input file name being abc, which causes the error during conversion in the lambda function
to fix this what is the suggested action?
OR I can name the input file as '0'
Also to make the code compatible with tf 1.15 I had to make some small changes to
config.py, batch_lbs.py and models.py in your hmr repo,
should I make a PR describing that? ( I don't think it is needed it's only 4 changes)
The text was updated successfully, but these errors were encountered: