Library Search
结果页多阶段构建 - 镜像体积优化 99%
在 技术栈 中找到 8 个匹配结果。
技术栈
技术栈
8 个 PyTorch # ============================================================
# 1. 数据加载与预处理
# ============================================================
transform = transforms.Compose([
transforms.ToTensor(),… 3% OpenAI API # ============================================================
# 4. Vision —— 图像理解
# ============================================================
response = client.chat.completions.create(
model="… 2% TensorFlow # ============================================================
# 2. 构建模型(Sequential API)
# ============================================================
model = tf.keras.Sequential([
tf.keras.layer… 2% Docker o-app
# my-go-app multi 8.5MB ← 多阶段构建
# my-go-app single 823MB ← 单阶段构建
# 3. 运行容器
docker run -d --name go-app -p 8080:8080 my-go-app:multi
# 4. 测试
curl http://localhost:8080/hello
# He… 2% OpenCV # OpenCV 技术栈概览
OpenCV(Open Source Computer Vision Library)是 Intel 于 1999 年发起的**开源计算机视觉库**,支持 C++ / Python / Java 等多语言接口。是图像处理和 CV 领域使用最广泛的库。
## 解决什么问题
- **图像处理**:滤波、边缘检测、形态学操作、色彩空间转换
- **目标检测**:人脸识… 2% Entity Framework ### 多对多(EF Core 5+ 自动处理)
```csharp
public class Student {
public int Id { get; set; }
public List<Course> Courses { get; set; } = new();
}
public class Course {
public int Id { get; set; }… 2% MediaPipe ```python
mp_pose = mp.solutions.pose
pose = mp_pose.Pose(
min_detection_confidence=0.5,
min_tracking_confidence=0.5,
model_complexity=2, # 0=轻量, 1=中等, 2=高精度
)
results = pose.process(rgb… 1% Three.js // 方向光(产生阴影和立体感)
const directionalLight = new THREE.DirectionalLight(0xffffff, 1.2);
directionalLight.position.set(5, 5, 5);
scene.add(directionalLight);
// ========== 6. 动画循环 =======… 1%