text_plain_output_1.png
import matplotlib.pyplot as plt

import os

import pandas as pd

root_dir = '/kaggle/input/image-matching-challenge-2023'
train_labels_file = os.path.join(root_dir, 'train/train_labels.csv')
train_labels = pd.read_csv(train_labels_file)

train_labels.columns

dataset_counts = train_labels['dataset'].value_counts()
scene_counts = train_labels['scene'].value_counts()

plt.figure(figsize=(10, 5))
plt.bar(dataset_counts.index, dataset_counts.values)
plt.xlabel('Dataset')
plt.ylabel('Number of Images')
plt.title('Distribution of Images per Dataset')
plt.show()