Skip to content

Commit

Permalink
update and sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
cxnt committed May 23, 2024
1 parent 15fc226 commit 590bde3
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions serve/src/main.py
Original file line number Diff line number Diff line change
@@ -1,38 +1,35 @@
import os
import shutil
import sys

try:
from typing import Literal
except:
from typing_extensions import Literal
from typing import List, Any, Dict

from collections import OrderedDict
from pathlib import Path
from typing import Any, Dict, List

import numpy as np
import pkg_resources
import torch
import yaml
from dotenv import load_dotenv
import torch
import supervisely as sly
import supervisely.app.widgets as Widgets
import supervisely.nn.inference.gui as GUI
import pkg_resources
from collections import OrderedDict
from mmcv import Config
from mmcv.cnn.utils import revert_sync_batchnorm
from mmcv.runner import load_checkpoint
from mmseg.models import build_segmentor
from mmseg.apis.inference import inference_segmentor
from mmseg.datasets import *
from mmseg.models import build_segmentor

from supervisely.app.widgets import (
Widget,
PretrainedModelsSelector,
CustomModelsSelector,
RadioTabs,
)
import supervisely as sly
from serve.src import utils
from supervisely.app.widgets import (CustomModelsSelector,
PretrainedModelsSelector, RadioTabs,
Widget)
from supervisely.io.fs import silent_remove

from src import utils

root_source_path = str(Path(__file__).parents[2])
app_source_path = str(Path(__file__).parents[1])
load_dotenv(os.path.join(app_source_path, "local.env"))
Expand Down

0 comments on commit 590bde3

Please sign in to comment.