Repository navigation
Save df3d results adjacent to data folder, not inside it. Closes #46 - #59
Conversation
|
Just to check the default directory structure that we use: Is the folder that contains the images usually something like And this folder contains the videos / images. So if we input this folder, the results will be saved at The only issue I see is if your images for each trial aren't saved in a subdirectory for that trial, so that |
|
Maybe the output folder command line argument could be an absolute folder? And if this isn't provided we save to Just trying to think of what's the most graceful way of handling this? |
|
You're absolutely right that the proposed changes would cause a problem when
Previously a df3d-cli command with the input folder argument being |
|
Sounds good! |
|
OK I think the behavior is now what we want:
So I think we now have a reasonable default when an argument is not provided, but when the user provides a path, it can be anywhere on the computer - previously Hmm some tests failed, I'll need to see why. |
|
Yeah, I think both paths should be relative to the place where the code is currently run. But absolute paths should also be possible. Like It's a bit weird that the output folder would be interpreted relative to the input folder. |
|
I confirmed this also works with absolute paths ( |
…eo data (#61) * Add a new tests for the default output dir and update `output_folder` parameter of Core Tests [#59](#59) * Run formatter on tests * Revert changes to video_pose3d.mp4 test data introduced in 3a1424a * Update imports in test script Fixes warning that `df3d.video` was being overshadowed by a variable called `video`
I've been using this updated code for a while because, as @azmaite says on #46, it's annoying to have the df3d results folder inside the folder with a zillion images. I have finally pushed this change. I think I changed the path in the tests file to work with the updated location that the results are now saved to, but I'd be eager to get @Dominic-DallOsto to confirm when possible.