mirror of
https://github.com/SikongJueluo/Mini-Nav.git
synced 2026-07-13 04:25:32 +08:00
refactor(pipeline): integrate SAM segmentation and modularize model loading
This commit is contained in:
@@ -3,11 +3,10 @@ from pathlib import Path
|
||||
|
||||
import torch
|
||||
from configs import cfg_manager
|
||||
from torch.types import Device
|
||||
|
||||
|
||||
@lru_cache(maxsize=1)
|
||||
def get_device() -> Device:
|
||||
def get_device() -> torch.device:
|
||||
config = cfg_manager.get()
|
||||
device = config.model.device
|
||||
if device == "auto":
|
||||
|
||||
Reference in New Issue
Block a user