yolov10安装体验

按照官网

conda create -n yolov10 python=3.9

conda activate yolov10

pip install -r requirements.txt

pip install -e .

一路安装,运行yolov10的问题,初次接触的同学可以注意。

Set arbitrary_types_allowed=True in the model_config to ignore this error

f you got this error by calling handler() within __get_pydantic_core_schema__ then you likely need to call handler.generate_schema(<some type>) since we do not call __get_pydantic_core_schema__ on <some type> otherwise to avoid infinite recursion.

For further information visit https://errors.pydantic.dev/2.9/u/schema-for-unknown-type

ERROR: Exception in ASGI application

Traceback (most recent call last):

File " python3.11/site-packages/pydantic/type_adapter.py", line 270, in _init_core_attrs

self._core_schema = _getattr_no_parents(self._type, 'pydantic_core_schema ')

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File " python3.11/site-packages/pydantic/type_adapter.py", line 112, in _getattr_no_parents

raise AttributeError(attribute)

AttributeError: pydantic_core_schema

解决方案:降低版本

pip install gradio==3.50.2 -i https://pypi.tuna.tsinghua.edu.cn/simple

然后还需要下载模型文件、权重文件。测试了一下视频检测,蛮okay的

相关推荐
电商API&Tina3 分钟前
京东 API 数据采集接口接入与行业分析
运维·服务器·网络·数据库·django·php
老周聊架构22 分钟前
基于YOLOv8-OBB旋转目标检测数据集与模型训练
人工智能·yolo·目标检测
柠檬叶子C33 分钟前
PostgreSQL 忘记 postgres 密码怎么办?(已解决)
数据库·postgresql
864记忆1 小时前
Qt创建连接注意事项
数据库·qt·nginx
毕设十刻2 小时前
基于Vue的迅读网上书城22f4d(程序 + 源码 + 数据库 + 调试部署 + 开发环境配置),配套论文文档字数达万字以上,文末可获取,系统界面展示置于文末
前端·数据库·vue.js
棒棒的皮皮2 小时前
【深度学习】YOLO模型速度优化Checklist
人工智能·深度学习·yolo·计算机视觉
薛定谔的猫19822 小时前
Langchain(十二)LangGraph 实战入门:用流程图思维构建 LLM 工作流
数据库·microsoft
坐吃山猪2 小时前
ChromaDB02-代码实战
数据库·向量数据库·chromadb
摇滚侠2 小时前
MySQL 中 utf8mb4 字符集,字母a占几个字节,一个汉字占几个字节 / MySQL 中 utf8mb3 字符集,字母a占几个字节,一个汉字占几个字节
数据库·mysql
ChineHe3 小时前
Redis数据类型篇001_数据类型梳理与选择指南
数据库·redis·缓存