Anustup commited on
Commit
23ef698
·
verified ·
1 Parent(s): 65c821e

Update texture_transfer.py

Browse files
Files changed (1) hide show
  1. texture_transfer.py +1 -1
texture_transfer.py CHANGED
@@ -10,7 +10,7 @@ def create_layover(background_image, layer_image, opacity):
10
  background_img = np.array(background_img_raw)
11
  background_img_float = background_img.astype(float)
12
  foreground_img_raw = Image.open(layer_image)
13
- foreground_img_raw = layer_image.convert("RGBA")
14
  foreground_img = np.array(foreground_img_raw)
15
  foreground_img_float = foreground_img.astype(float)
16
  blended_img_float = create_hard_light_layover(background_img_float, foreground_img_float, opacity)
 
10
  background_img = np.array(background_img_raw)
11
  background_img_float = background_img.astype(float)
12
  foreground_img_raw = Image.open(layer_image)
13
+ foreground_img_raw = foreground_img_raw.convert("RGBA")
14
  foreground_img = np.array(foreground_img_raw)
15
  foreground_img_float = foreground_img.astype(float)
16
  blended_img_float = create_hard_light_layover(background_img_float, foreground_img_float, opacity)