print("Check if it exists and is in the PNG or JPG format.")
else:
self.decensor_image(colored_img, colored_img, file_name)
elif not file_name.startswith("."): // warn if not a PNG, but ignore .gitkeep
print("--------------------------------------------------------------------------")
print("Unsupported file type (not a PNG): {}".format(color_file_path))
print("--------------------------------------------------------------------------")
After Change
input_dir = self.args.decensor_input_path
output_dir = self.args.decensor_output_path
file_names, self.files_removed = file.check_file( input_dir, output_dir, False)
//convert all images into np arrays and put them in a list
for file_name in file_names: