fitst commit

This commit is contained in:
2026-01-08 14:35:23 +08:00
commit b57e61f2f7
152 changed files with 7675 additions and 0 deletions

11
notebooks/onnx_model_example.py Executable file
View File

@@ -0,0 +1,11 @@
# 导入必要的库
import numpy as np
import torch
import matplotlib.pyplot as plt
from PIL import Image
import requests
from io import BytesIO
# 从 SAM 2 库中导入图像预测器和模型构建工具
from sam2.build_sam import build_sam2
from sam2.sam2_image_predictor import SAM2ImagePredictor