06实战经验X-anylabelingAI自动标注数据集-本地实现-方法二(2025年12月)保姆级教程

1.下载地址

GitHub源码地址:https://github.com/CVHub520/X-AnyLabeling/tree/main

2.下载之后解压,用pycharm打开。

创建一个新的环境以作区分

复制代码
conda create -n xanylabelingapp python=3.9

安装必须的包,镜像源安装更快一些(使用哪个源都可以)

复制代码
pip install numpy pandas -i https://pypi.tuna.tsinghua.edu.cn/simple

3.pycharm打开下载后解压的包,如下

添加解释器,选择你刚刚创建的环境即可

自己下载的位置选一下就可以类

等待加载完成

点击终端,安装requirements.txt(或者win+r +》cmd 激活对应的conda环境,然后直接cd C:\Users\liupei\Desktop\X-AnyLabeling-main)

复制代码
pip install -r requirements.txt

安装完成之后,再次安装一个读取yaml文件的包,因为后续我们实现自动标注是需要自己配置对应的yaml文件的,下面我是采用了镜像源加速,若是还有其他模块报错,缺什么安装什么就行

复制代码
pip install PyYAML  -i https://pypi.tuna.tsinghua.edu.cn/simple

xxxxxxxxxxxx替换成你缺少的

复制代码
pip install xxxxxxxxxxxxxxx -i https://pypi.tuna.tsinghua.edu.cn/simple

(这种是在pycharm上启动的,就不需要进行cd一下)就可以启动了

复制代码
python anylabeling/app.py

启动成功(后续只需要在cmd页面启动即可)

此时此刻你肯定觉得每次

cd C:\Users\liupei\Desktop\X-AnyLabeling-main 很麻烦

tops:

写一个bat小脚本批处理文件(cd 后面跟上你自己的地址)(conda activate xxxx[你的环境])

我是命名为run_anylabeling.bat(当然你是先改成txt文件,把修改后你的下面的内容放进去)

双击这个 .bat 文件,就能自动进入目录、激活环境、启动程序!

复制代码
@echo off
cd /d "C:\Users\liupei\Desktop\X-AnyLabeling-main"
call conda activate xanylabelingapp
python anylabeling/app.py
pause

效果如下

相关推荐
AI探索者14 小时前
LangGraph StateGraph 实战:状态机聊天机器人构建指南
python
AI探索者14 小时前
LangGraph 入门:构建带记忆功能的天气查询 Agent
python
FishCoderh15 小时前
Python自动化办公实战:批量重命名文件,告别手动操作
python
躺平大鹅15 小时前
Python函数入门详解(定义+调用+参数)
python
曲幽17 小时前
我用FastAPI接ollama大模型,差点被asyncio整崩溃(附对话窗口实战)
python·fastapi·web·async·httpx·asyncio·ollama
两万五千个小时20 小时前
落地实现 Anthropic Multi-Agent Research System
人工智能·python·架构
哈里谢顿1 天前
Python 高并发服务限流终极方案:从原理到生产落地(2026 实战指南)
python
用户8356290780512 天前
无需 Office:Python 批量转换 PPT 为图片
后端·python
markfeng82 天前
Python+Django+H5+MySQL项目搭建
python·django
GinoWi2 天前
Chapter 2 - Python中的变量和简单的数据类型
python