praveena2j / RJCMA

ABAW6 (CVPR-W) We achieved second place in the valence arousal challenge of ABAW6
https://affective-behavior-analysis-in-the-wild.github.io/6th/
9 stars 2 forks source link

float division by zero #4

Open FreedomPuppy77 opened 2 weeks ago

FreedomPuppy77 commented 2 weeks ago

/data/lyh/Affwild2/cropped_aligned/1-30-1280x720 Traceback (most recent call last): File "/home/sherry/lyh/RJCMA/abaw6_preprocessing/project/abaw5/main.py", line 18, in pre.generate_per_trial_info_dict() File "/home/sherry/lyh/RJCMA/abaw6_preprocessing/project/abaw5/preprocessing.py", line 111, in generate_per_trial_info_dict this_trial['video_annotated_index'] = self.get_annotated_index(annotated_index, *get_annotated_index_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/sherry/lyh/RJCMA/abaw6_preprocessing/project/abaw5/preprocessing.py", line 225, in get_annotated_index sampled_index = np.asarray(np.round(target_frequency / source_frequency annotated_index), dtype=np.int64)


ZeroDivisionError: float division by zero
Hello, I can not solve this problem, I do not know what is the reason? Can you help me to solve it?
praveena2j commented 2 weeks ago

I guess you need to debug the code, check the data in the variables before this line

FreedomPuppy77 commented 2 weeks ago

Ok, thanks for your answer, I'll take a closer look at the code, and by the way, when doing the preprocessing, is it the source dataset or the official cropped dataset that is used.

praveena2j commented 2 weeks ago

I have used the official cropped and aligned images provided by the organizers

FreedomPuppy77 commented 2 weeks ago

Okay, thanks again.