-
Notifications
You must be signed in to change notification settings - Fork 97
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
Extraction from paths with the same filename are not supported #54
Comments
MWE: python main.py flow_type="raft" \
feature_type=i3d \
device_ids="[0]" on_extraction="save_numpy" \
video_paths="[./todel/cat/000.mp4, ./todel/dog/000.mp4]"
ls ./output |
python main.py flow_type="raft" \
feature_type=i3d \
device_ids="[0]" on_extraction="save_numpy" \
video_paths="[./todel/cat/000.mp4, ./todel/dog/000.mp4]" Now it fails (and that's ok 😆 ). |
I think I agree that it would be lovely to keep the folder structure, but this feature may correspond to a new parameter (e.g., |
Yes, it is. The problem was with the saving of the extracted features as they collide with other user-specified files if they are from different folders but have the same file name. I agree that we may need a new parameter if a user wants to specify a folder, like a dataset. |
Currently, it is assumed that all user-specified files have distinct file names. However, it leads to unwanted behavior if a user extracts files from multiple folders, e.g.
On a side note, it would be lovely to keep the folder structure, if any, during the save. Plus,
model_name
andfeature_type
should be a part of the path.<output_path>/feature_type/(model_name/)<path_relative_to(os.common_path(list_of_paths))>
.The text was updated successfully, but these errors were encountered: