- dts配置定义:目录 arch/arm64/boot/dts/ ,一个板可以对应多个不同驱动,通过node组合,相当于是各种不同的设备组合起来成一个大的
- 驱动绑定:Documentation/devicetree/bindings,上面node的不同属性值规范
- 大多数设备是已经有驱动的
- 对应驱动:部分在目录 drivers下,例如这个,和上面dts中驱动节点是相对应的
- platform device挂载驱动位置/sys/devices/platform
[......]
nmap -sn 192.168.1.0/24
[......]
备份
cp ./registries.conf ./registries.conf.bk
配置
/etc/containers/registries.conf
unqualified-search-registries = ["docker.io"]
[[registry]]
prefix = "docker.io"
location = "docker.m.daocloud.io"
insecure = true
当前可用镜像:
思路:使用模型的特征提取层,转化成向量,然后比对向量的距离(比如cos)
import torch
import torchvision.models as models
import torchvision.transforms as transforms
from PIL import Image
# load model & feature only
model = models.mobilenet_v3_small(pretrained=True)
mode[......]
import cv2
import numpy as np
import onnxruntime as ort
def load_model(model_path):
"""加载ONNX模型"""
session = ort.InferenceSession(model_path)
return session
def preprocess_image(image_path):
image = cv2.imread(image_path)[......]