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的

相关推荐
q***06472 小时前
MySQL的UPDATE(更新数据)详解
数据库·mysql
8***B2 小时前
MySQL性能
数据库·mysql
q***72192 小时前
oracle使用PLSQL导出表数据
数据库·oracle
数据库生产实战2 小时前
Oracle DG备库日志切换解析,Private strand flush not complete如何理解?(基础知识)
数据库·oracle
百***75742 小时前
从 SQL 语句到数据库操作
数据库·sql·oracle
i***39582 小时前
SQL 注入详解:原理、危害与防范措施
数据库·sql·oracle
m***56724 小时前
Win10下安装 Redis
数据库·redis·缓存
Warren984 小时前
Python自动化测试全栈面试
服务器·网络·数据库·mysql·ubuntu·面试·职场和发展
kka杰5 小时前
MYSQL 表的增删查改-更新/删除
数据库·mysql
q***44816 小时前
mysql配置环境变量——(‘mysql‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件解决办法)
数据库·mysql·adb