mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-27 22:15:00 +00:00
remove annotations and add Enum
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
778054f234
commit
63bd7a5674
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue