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的

相关推荐
snpgroupcn30 分钟前
深入了解SAP物料类型是什么?
运维·数据库
2401_8543910841 分钟前
Spring Boot影院管理系统:小徐的创新
服务器·数据库·spring boot
promise52443 分钟前
MySQL实现按分秒统计数据量
linux·运维·数据库·sql·mysql·shell
忽晚♪‎( ᷇࿀ ᷆ و(و1 小时前
Redis
数据库·redis·缓存
golove6661 小时前
分布式数据库
数据库
听雪楼主.1 小时前
某客户Oracle RAC无法启动故障快速解决
数据库·oracle
liang_kk2 小时前
虚谷中使用PL/SQL改变模式下所有表的大小写
数据库·sql
PGCCC2 小时前
【PGCCC】PostgreSQL中的超级监控助手:pg_stat_monitor,您数据库的最佳搭档!
数据库·postgresql
人生在勤,不索何获-白大侠2 小时前
Sql Developer日期显示格式设置
数据库
pranaa2 小时前
数据结构:树的定义及其性质
数据结构·数据库·算法