text_plain_output_1.png
import os

def convert_bytes(size):
    """ Convert bytes to KB, or MB or GB"""
    for x in ['bytes', 'KB', 'MB', 'GB', 'TB']:
        if size < 1024.0:
            return '%3.1f %s' % (size, x)
        size /= 1024.0

file_list = ['train_cite_inputs.h5', 'train_cite_targets.h5', 'train_multi_inputs.h5', 'train_multi_targets.h5', 'test_cite_inputs.h5', 'test_multi_inputs.h5']
for f in file_list:
    f_path = f'../input/open-problems-multimodal/{f}'
    f_size = os.path.getsize(f_path)
    f_size_converted = convert_bytes(f_size)
    print(f'{f} :', f_size_converted)