Skip to content

Commit

Permalink
removed alpha channel from video frames
Browse files Browse the repository at this point in the history
  • Loading branch information
faberf committed Sep 11, 2023
1 parent 8987321 commit d6d4c3f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ private float[] embedModel(IModel model) throws IOException, InterruptedExceptio

private float[] embedVideo(List<MultiImage> frames) throws IOException, InterruptedException {
var images = frames.stream().map(image -> image.getBufferedImage()).collect(Collectors.toList());
images = images.stream().map(img -> new BufferedImage(img.getWidth(), img.getHeight(), BufferedImage.TYPE_INT_RGB)).collect(Collectors.toList());
var encodings = embedMultipleImages(images);

// Sum
Expand Down

0 comments on commit d6d4c3f

Please sign in to comment.