import os

path = '../experiment/test/results-B100'

for png in os.listdir(path):
    file_path = os.path.join(path, png)
    if 'x1' in png:
        new_file_path = png.split('x')[0][:-1]
        os.rename(file_path, os.path.join(path, new_file_path+".png"))

626d43c14d979001b88e50903a1b28793c6a8e9b
<mask token>

<mask token>
for png in os.listdir(path):
    file_path = os.path.join(path, png)
    if 'x1' in png:
        new_file_path = png.split('x')[0][:-1]
        os.rename(file_path, os.path.join(path, new_file_path + '.png'))

<mask token>
path = '../experiment/test/results-B100'
for png in os.listdir(path):
    file_path = os.path.join(path, png)
    if 'x1' in png:
        new_file_path = png.split('x')[0][:-1]
        os.rename(file_path, os.path.join(path, new_file_path + '.png'))

import os
path = '../experiment/test/results-B100'
for png in os.listdir(path):
    file_path = os.path.join(path, png)
    if 'x1' in png:
        new_file_path = png.split('x')[0][:-1]
        os.rename(file_path, os.path.join(path, new_file_path + '.png'))

import os

path = '../experiment/test/results-B100'

for png in os.listdir(path):
    file_path = os.path.join(path, png)
    if 'x1' in png:
        new_file_path = png.split('x')[0][:-1]
        os.rename(file_path, os.path.join(path, new_file_path+".png"))
