Open tyiannak opened 3 years ago
Create a new script aggregate_annotations.py Let me explain the problems I encountered while implementing the code. The annotations_database.txt file in the first line has no delimiter between words and pandas did not recognize them so I added comma. In addition the N / A class is recognized by the pandas as NaN and so in the final file created later (I will explain) it does not exist as a class. So in order to create the script I renamed NaN to Nothing. In the folder there are 2 versions of the file where V1 the old and V2 the new. The code prints:
For sure the script must be update. Please express your ideas for how many files must be created (more,less?) and bags that may be in the code that affect the end result.
@apoman38 thanx for the update I did not undarstand exactly what is the problem with the annotations_database.txt file, why can't we just define the delimiter while uploading the csv file? Also, have you tested that the final annotation actually works? (you could test by making some "artificiall" annotations for specific files)
The file has been updated, the file seems to be working properly without any incorrect results. See here " https://github.com/tyiannak/multimodal_movie_analysis/issues/20#issuecomment-724602847 " for details about the output files. I created a new file hello.txt with false annotations and i added one specific video to many classes to see if the confidence works as expected. Please run the code with hello.txt file to see the results.
@apoman38 @electrasif Create a new script e.g. in shot_annotation/aggregate_annotations.py
Given the annotation csv this script should: a) get generic statistics: e.g.