(activation_dict, file)
| 111 | |
| 112 | |
| 113 | def evaluate_diversity(activation_dict, file): |
| 114 | eval_dict = OrderedDict({}) |
| 115 | print('========== Evaluating Diversity ==========') |
| 116 | for model_name, motion_embeddings in activation_dict.items(): |
| 117 | diversity = calculate_diversity(motion_embeddings, diversity_times) |
| 118 | eval_dict[model_name] = diversity |
| 119 | print(f'---> [{model_name}] Diversity: {diversity:.4f}') |
| 120 | print(f'---> [{model_name}] Diversity: {diversity:.4f}', file=file, flush=True) |
| 121 | return eval_dict |
| 122 | |
| 123 | |
| 124 | def evaluate_multimodality(mm_motion_loaders, file): |
no test coverage detected