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的

相关推荐
TDengine (老段)1 小时前
TDengine 字符串函数 CHAR 用户手册
java·大数据·数据库·物联网·时序数据库·tdengine·涛思数据
qq7422349841 小时前
Python操作数据库之pyodbc
开发语言·数据库·python
姚远Oracle ACE2 小时前
Oracle 如何计算 AWR 报告中的 Sessions 数量
数据库·oracle
Dxy12393102162 小时前
MySQL的SUBSTRING函数详解与应用
数据库·mysql
码力引擎2 小时前
【零基础学MySQL】第十二章:DCL详解
数据库·mysql·1024程序员节
杨云龙UP2 小时前
【MySQL迁移】MySQL数据库迁移实战(利用mysqldump从Windows 5.7迁至Linux 8.0)
linux·运维·数据库·mysql·mssql
l1t3 小时前
利用DeepSeek辅助修改luadbi-duckdb读取DuckDB decimal数据类型
c语言·数据库·单元测试·lua·duckdb
安当加密3 小时前
Nacos配置安全治理:把数据库密码从YAML里请出去
数据库·安全
ColderYY3 小时前
Python连接MySQL数据库
数据库·python·mysql
笑脸惹桃花3 小时前
目标检测数据集——路面裂缝检测数据集
人工智能·深度学习·yolo·目标检测·计算机视觉·数据集