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

What's the second argument to process_and_upload? A file path, or, a list of files? #704

Closed
komali2 opened this issue Feb 8, 2025 · 2 comments

Comments

@komali2
Copy link

komali2 commented Feb 8, 2025

I just spent a day recording both timelapse pictures, and, gps tagged video on my gopro hero 11. Both are now in a folder called 100GOPRO.

I installed mapillary tools and per the documentation want to run process_and_upload. The instructions I interpret as meaning, "The process_and_upload command can take two arguments: the first is where the static photos are stored, and the second is where the video files are stored with a wildcard filter for the kind of video file that should be selected."

So,

mapillary_tools process_and_upload 100GOPRO 100GOPRO/*.mp4

I get this error:

2025-02-08 17:58:26,521 - ERROR   - MapillaryFileNotFoundError: Import file or directory not found: 100GOPRO/*.mp4

Should I use bash expansion to instead expand the not-first-argument to be a list of files? I'm within a linux environment (arch).

@bob3bob3
Copy link

bob3bob3 commented Feb 8, 2025

I remember being confused by this some years ago but don't remember exactly what I did. I think it needed a fully qualified path name and the static image interim/output folder a trailing / There may have even been quoting involved.

eg

mapillary_tools process_and_upload "/home/user/output/100GOPRO/" "/home/user/input/100GOPRO/"

Looking at the current version CLI help though "process_and_upload" seems to be just for static images whereas "video_process_and_upload" has the minimal 2 directory arguments for both input and output. It also seems that the input mp4 folder is the first argument though, not the 2nd.

ie see;
mapillary_tools video_process_and_upload --help
mapillary_tools process_and_upload --help
I have always found this info more reliable than the README.md

Sorry I cant be more specific. I suggest some experimentation on a copy folder and using --dry-run

Cheers

@ptpt
Copy link
Member

ptpt commented Feb 10, 2025

@komali2 process_and_upload, process or upload accepts a list of paths that you would like to process or upload.

Some systems expand 100GOPRO/*.mp4 to a list of mp4 files under the folder, but some treat it as file named 100GOPRO/*.mp4 literally. Maybe check something like ls 100GOPRO/*.mp4 or dir 100GOPRO/*.mp4 and see if it's expanding correctly?

@ptpt ptpt closed this as completed Mar 5, 2025
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