KingNish commited on
Commit
5d54853
1 Parent(s): 9ac006e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def fn(vid, fps, color):
47
  processed_frames_no_bg.append(np.array(processed_image)) # Save no-background frame
48
 
49
  # Compose with background for changed background video
50
- background = Image.new("RGBA", pil_image.size, color + (255,))
51
  composed_image = Image.composite(pil_image, background, mask)
52
  processed_frames_changed_bg.append(np.array(composed_image))
53
 
 
47
  processed_frames_no_bg.append(np.array(processed_image)) # Save no-background frame
48
 
49
  # Compose with background for changed background video
50
+ background = Image.new("RGBA", pil_image.size, color + str((255,)))
51
  composed_image = Image.composite(pil_image, background, mask)
52
  processed_frames_changed_bg.append(np.array(composed_image))
53