I'm making an image cropping program in python. After the images are cropped, images with a gray background need to be found and converted to a white background. There are passport photos of students in the pictures.
I covered the child's face for privacy.
I tried to download the Pixellib library, but I'm getting an error.
change_bg = alter_bg()
change_bg.load_pascalvoc_model("/Users/apple/Desktop/BackGround/deeplabv3_xception_tf_dim_ordering_tf_kernels.h5")
output = change_bg.color_bg("/Users/apple/Desktop/Resimler /albüm 1/IMG-20201203-WA0039.jpg", colors = (0, 128, 0))
output.save(os.path.join("/Users/apple/Desktop/BackGround/img/_Dtre.JPG"))
ValueError: You are trying to load a weight file containing 293 layers into a model with 147 layers.
I tried several different sizes and extensions of images, but I kept getting this warning.