Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

chore: remove unused import and variable (#863)

ohae2c2e3f72701
diff --git a/rembg/commands/b_command.py b/rembg/commands/b_command.py
index c5a1baf..3d94ea3 100644
--- a/rembg/commands/b_command.py
+++ b/rembg/commands/b_command.py
@@ -3,7 +3,6 @@ import io
import json
import os
import sys
-from typing import IO
import click
import PIL
diff --git a/rembg/sessions/sam.py b/rembg/sessions/sam.py
index e0f682d..5ff3bac 100644
--- a/rembg/sessions/sam.py
+++ b/rembg/sessions/sam.py
@@ -280,12 +280,6 @@ class SamSession(BaseSession):
encoder_output = self.encoder.run(None, encoder_inputs)
image_embedding = encoder_output[0]
- embedding = {
- "image_embedding": image_embedding,
- "original_size": original_size,
- "transform_matrix": transform_matrix,
- }
-
## decoder
input_points, input_labels = get_input_points(prompt)