change default IS model size to 384

This commit is contained in:
Qing 2022-12-02 13:40:35 +08:00
parent 2611d2fb44
commit db92e07b72

View File

@ -159,7 +159,7 @@ INTERACTIVE_SEG_MODEL_URL = os.environ.get(
class InteractiveSeg:
def __init__(self, infer_size=448, open_kernel_size=3, dilate_kernel_size=3):
def __init__(self, infer_size=384, open_kernel_size=3, dilate_kernel_size=3):
device = torch.device('cpu')
model = load_jit_model(INTERACTIVE_SEG_MODEL_URL, device).eval()
self.predictor = ISPredictor(model, device,