Closed xrlaxowlsx closed 2 years ago
Hey @xrlaxowlsx, thank you for your interest!
We assume that each video has a corresponding .csv file, where one line corresponds to one frame. Obviously, each video will have different lengths right? Since we are working with video-level (weakly-supervised learning) and with C3D which has a frame length of 16, we normalize the videos and annotations to have the same clip length and csv files are split into clips of 480 frames (16 frames x 30 fps, default settings).
Are the annotations in normalize_notes the annotations in UBI_FIGHTS?
Yes! The normalize_notes.py is ready for UBI-Fights dataset.
Oh, thank you for confirming!
Now what I'm curious about is this. I wonder where the val_notes and test_notes csv files required for ws_ss are generated. I ran all the courses in utils and the created data is frames, sub_vides, dest_csv, root_features, and destSEG. (root_feature was obtained by modifying input_C3D and executing it directly. :)) Test_notes and val_notes needed to run ws_ss could not be created.
Do i still have more procedures to do here?
For the val_notes.csv and test_notes.csv, after running normalize_notes.py for the validation set and test set (where each folder has a csv file for each video) the val_notes.csv (for example with the validation set) will be generated to the dest_csv path that you want (argument in the normalize_notes.py).
Feel free to ask anything! It is my pleasure!
First, thank you for your kindness. I'm really sorry that I keep asking the same question, but I'll write down my situation. The following article is a variable in each file I understand.
The previous number is in the order of execution.
video_frames.py
normalize_videos.py
normalize_notes.py
input_C3D.py
normalize_C3D.py
and my dataset and directories
I wonder if the preprocessed data is in this shape. And I still can't get val_notes.csv and test_notes.csv. When i run the normalize_notes.py, it just creates a huge amount of csv files as shown in the picture below. Not test_notes.csv and val_notes.csv. When I saw the code, it seems that there is no code to generate test_notes.csv and val_notes.csv.
Have a nice day!!
No problem at all! My bad sorry, there are some details that I did not remember and I wasn't understanding your question! After creating that bunch of csv files (which are related to the clips of each video) you need to concatenate them into one one csv file only! Format example in one line of the csv file for weak annotation (label corresponding if the segment comes from a positive or negative video):
path_to_temporal_segment_file, label
Format example in one line of the csv file for strong annotation (label corresponding to the mean of 16 frames of course):
path_to_raw_C3D_segment_file, label
Concatenation is necessary, I was forgetting that part!
Hello @DegardinBruno Thank you for your usual support
I were able to generate multiple CVS files corresponding to each sub video.
the output as the following image.
1- is it correct? 2- how can concatenate the files into single one? 3- how to chose the validation and the test values? 4- what is the value of the expected label for the positive and negative? 0,1?
thank you a lot.
First, I was unable to proceed with the study due to graphics card issues. Therefore, please use it for reference only.
Importantly, val_notes and test_notes must have only labels, no paths. Have a nice day!
@xrlaxowlsx Thank you!! really appreciate your answer and support! Thank you a lot
I tried to experiment with this project with small data. However, during the normalization process, the val_notes.csv test_notes.csv file could not be obtained. According to Readme, it can be obtained by running the normalize_notes file, but it was each csv file I got. Can you tell me how to get val_notes and test_notes, and how they are filled?
Are the annotations in normalize_notes the annotations in UBI_FIGHTS?