569305e77b02632e215ef9df99de87dc6da8879b,decensor.py,Decensor,decensor_all_images_in_folder,#Decensor#,45
Before Change
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("--------------------------------------------------------------------------")
//decensors one image at a time
After Change
if os.path.isfile(color_file_path) and color_ext.casefold() == ".png":
print("--------------------------------------------------------------------------")
print("Decensoring the image {}".format(color_file_path))
try :
colored_img = Image.open(color_file_path)
except:
print("Cannot identify image file (" +str(color_file_path)+")")
self.files_removed.append((color_file_path,3))
// incase of abnormal file format change (ex : text.txt -> text.png)
continue
//if we are doing a mosaic decensor
if self.is_mosaic:
//get the original file that hasn"t been colored
ori_dir = self.args.decensor_input_original_path
//since the original image might not be a png, test multiple file formats
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: deeppomf/DeepCreamPy
Commit Name: 569305e77b02632e215ef9df99de87dc6da8879b
Time: 2019-04-22
Author: 46418312+ccppoo@users.noreply.github.com
File Name: decensor.py
Class Name: Decensor
Method Name: decensor_all_images_in_folder
Project Name: maxpumperla/elephas
Commit Name: 3244cbc512a6b617600a91ec60b65e3e01d2b1dc
Time: 2018-09-05
Author: max.pumperla@googlemail.com
File Name: elephas/java/__init__.py
Class Name:
Method Name:
Project Name: GPflow/GPflow
Commit Name: baf110d82f60c51a5680e728cd3c5c6d3536117d
Time: 2017-09-24
Author: art.art.v@gmail.com
File Name: gpflow/params.py
Class Name: ParamList
Method Name: __init__