remove annotations and add Enum

Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
Aisuko 2023-11-09 00:54:25 +00:00 committed by GitHub
parent 778054f234
commit 63bd7a5674
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,8 @@
#! /usr/bin/env python3
from __future__ import annotations
from concurrent import futures
import argparse
from enum import Enum
import os
import signal
import sys
@ -28,7 +28,7 @@ IMAGE_SIZE = 1024
VIT_PATCH_SIZE=16
# Enum for sam model type
class SamModelType:
class SamModelType(str, Enum):
default = "sam_hq_vit_h.pth"
vit_h = "sam_hq_vit_h.pth"
vit_l = "sam_hq_vit_l.pth"