[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"similar-tinghuiz--SfMLearner":3,"tool-tinghuiz--SfMLearner":64},[4,17,27,35,43,56],{"id":5,"name":6,"github_repo":7,"description_zh":8,"stars":9,"difficulty_score":10,"last_commit_at":11,"category_tags":12,"status":16},3808,"stable-diffusion-webui","AUTOMATIC1111\u002Fstable-diffusion-webui","stable-diffusion-webui 是一个基于 Gradio 构建的网页版操作界面，旨在让用户能够轻松地在本地运行和使用强大的 Stable Diffusion 图像生成模型。它解决了原始模型依赖命令行、操作门槛高且功能分散的痛点，将复杂的 AI 绘图流程整合进一个直观易用的图形化平台。\n\n无论是希望快速上手的普通创作者、需要精细控制画面细节的设计师，还是想要深入探索模型潜力的开发者与研究人员，都能从中获益。其核心亮点在于极高的功能丰富度：不仅支持文生图、图生图、局部重绘（Inpainting）和外绘（Outpainting）等基础模式，还独创了注意力机制调整、提示词矩阵、负向提示词以及“高清修复”等高级功能。此外，它内置了 GFPGAN 和 CodeFormer 等人脸修复工具，支持多种神经网络放大算法，并允许用户通过插件系统无限扩展能力。即使是显存有限的设备，stable-diffusion-webui 也提供了相应的优化选项，让高质量的 AI 艺术创作变得触手可及。",162132,3,"2026-04-05T11:01:52",[13,14,15],"开发框架","图像","Agent","ready",{"id":18,"name":19,"github_repo":20,"description_zh":21,"stars":22,"difficulty_score":23,"last_commit_at":24,"category_tags":25,"status":16},1381,"everything-claude-code","affaan-m\u002Feverything-claude-code","everything-claude-code 是一套专为 AI 编程助手（如 Claude Code、Codex、Cursor 等）打造的高性能优化系统。它不仅仅是一组配置文件，而是一个经过长期实战打磨的完整框架，旨在解决 AI 代理在实际开发中面临的效率低下、记忆丢失、安全隐患及缺乏持续学习能力等核心痛点。\n\n通过引入技能模块化、直觉增强、记忆持久化机制以及内置的安全扫描功能，everything-claude-code 能显著提升 AI 在复杂任务中的表现，帮助开发者构建更稳定、更智能的生产级 AI 代理。其独特的“研究优先”开发理念和针对 Token 消耗的优化策略，使得模型响应更快、成本更低，同时有效防御潜在的攻击向量。\n\n这套工具特别适合软件开发者、AI 研究人员以及希望深度定制 AI 工作流的技术团队使用。无论您是在构建大型代码库，还是需要 AI 协助进行安全审计与自动化测试，everything-claude-code 都能提供强大的底层支持。作为一个曾荣获 Anthropic 黑客大奖的开源项目，它融合了多语言支持与丰富的实战钩子（hooks），让 AI 真正成长为懂上",138956,2,"2026-04-05T11:33:21",[13,15,26],"语言模型",{"id":28,"name":29,"github_repo":30,"description_zh":31,"stars":32,"difficulty_score":23,"last_commit_at":33,"category_tags":34,"status":16},2271,"ComfyUI","Comfy-Org\u002FComfyUI","ComfyUI 是一款功能强大且高度模块化的视觉 AI 引擎，专为设计和执行复杂的 Stable Diffusion 图像生成流程而打造。它摒弃了传统的代码编写模式，采用直观的节点式流程图界面，让用户通过连接不同的功能模块即可构建个性化的生成管线。\n\n这一设计巧妙解决了高级 AI 绘图工作流配置复杂、灵活性不足的痛点。用户无需具备编程背景，也能自由组合模型、调整参数并实时预览效果，轻松实现从基础文生图到多步骤高清修复等各类复杂任务。ComfyUI 拥有极佳的兼容性，不仅支持 Windows、macOS 和 Linux 全平台，还广泛适配 NVIDIA、AMD、Intel 及苹果 Silicon 等多种硬件架构，并率先支持 SDXL、Flux、SD3 等前沿模型。\n\n无论是希望深入探索算法潜力的研究人员和开发者，还是追求极致创作自由度的设计师与资深 AI 绘画爱好者，ComfyUI 都能提供强大的支持。其独特的模块化架构允许社区不断扩展新功能，使其成为当前最灵活、生态最丰富的开源扩散模型工具之一，帮助用户将创意高效转化为现实。",107662,"2026-04-03T11:11:01",[13,14,15],{"id":36,"name":37,"github_repo":38,"description_zh":39,"stars":40,"difficulty_score":23,"last_commit_at":41,"category_tags":42,"status":16},3704,"NextChat","ChatGPTNextWeb\u002FNextChat","NextChat 是一款轻量且极速的 AI 助手，旨在为用户提供流畅、跨平台的大模型交互体验。它完美解决了用户在多设备间切换时难以保持对话连续性，以及面对众多 AI 模型不知如何统一管理的痛点。无论是日常办公、学习辅助还是创意激发，NextChat 都能让用户随时随地通过网页、iOS、Android、Windows、MacOS 或 Linux 端无缝接入智能服务。\n\n这款工具非常适合普通用户、学生、职场人士以及需要私有化部署的企业团队使用。对于开发者而言，它也提供了便捷的自托管方案，支持一键部署到 Vercel 或 Zeabur 等平台。\n\nNextChat 的核心亮点在于其广泛的模型兼容性，原生支持 Claude、DeepSeek、GPT-4 及 Gemini Pro 等主流大模型，让用户在一个界面即可自由切换不同 AI 能力。此外，它还率先支持 MCP（Model Context Protocol）协议，增强了上下文处理能力。针对企业用户，NextChat 提供专业版解决方案，具备品牌定制、细粒度权限控制、内部知识库整合及安全审计等功能，满足公司对数据隐私和个性化管理的高标准要求。",87618,"2026-04-05T07:20:52",[13,26],{"id":44,"name":45,"github_repo":46,"description_zh":47,"stars":48,"difficulty_score":23,"last_commit_at":49,"category_tags":50,"status":16},2268,"ML-For-Beginners","microsoft\u002FML-For-Beginners","ML-For-Beginners 是由微软推出的一套系统化机器学习入门课程，旨在帮助零基础用户轻松掌握经典机器学习知识。这套课程将学习路径规划为 12 周，包含 26 节精炼课程和 52 道配套测验，内容涵盖从基础概念到实际应用的完整流程，有效解决了初学者面对庞大知识体系时无从下手、缺乏结构化指导的痛点。\n\n无论是希望转型的开发者、需要补充算法背景的研究人员，还是对人工智能充满好奇的普通爱好者，都能从中受益。课程不仅提供了清晰的理论讲解，还强调动手实践，让用户在循序渐进中建立扎实的技能基础。其独特的亮点在于强大的多语言支持，通过自动化机制提供了包括简体中文在内的 50 多种语言版本，极大地降低了全球不同背景用户的学习门槛。此外，项目采用开源协作模式，社区活跃且内容持续更新，确保学习者能获取前沿且准确的技术资讯。如果你正寻找一条清晰、友好且专业的机器学习入门之路，ML-For-Beginners 将是理想的起点。",84991,"2026-04-05T10:45:23",[14,51,52,53,15,54,26,13,55],"数据工具","视频","插件","其他","音频",{"id":57,"name":58,"github_repo":59,"description_zh":60,"stars":61,"difficulty_score":10,"last_commit_at":62,"category_tags":63,"status":16},3128,"ragflow","infiniflow\u002Fragflow","RAGFlow 是一款领先的开源检索增强生成（RAG）引擎，旨在为大语言模型构建更精准、可靠的上下文层。它巧妙地将前沿的 RAG 技术与智能体（Agent）能力相结合，不仅支持从各类文档中高效提取知识，还能让模型基于这些知识进行逻辑推理和任务执行。\n\n在大模型应用中，幻觉问题和知识滞后是常见痛点。RAGFlow 通过深度解析复杂文档结构（如表格、图表及混合排版），显著提升了信息检索的准确度，从而有效减少模型“胡编乱造”的现象，确保回答既有据可依又具备时效性。其内置的智能体机制更进一步，使系统不仅能回答问题，还能自主规划步骤解决复杂问题。\n\n这款工具特别适合开发者、企业技术团队以及 AI 研究人员使用。无论是希望快速搭建私有知识库问答系统，还是致力于探索大模型在垂直领域落地的创新者，都能从中受益。RAGFlow 提供了可视化的工作流编排界面和灵活的 API 接口，既降低了非算法背景用户的上手门槛，也满足了专业开发者对系统深度定制的需求。作为基于 Apache 2.0 协议开源的项目，它正成为连接通用大模型与行业专有知识之间的重要桥梁。",77062,"2026-04-04T04:44:48",[15,14,13,26,54],{"id":65,"github_repo":66,"name":67,"description_en":68,"description_zh":69,"ai_summary_zh":69,"readme_en":70,"readme_zh":71,"quickstart_zh":72,"use_case_zh":73,"hero_image_url":74,"owner_login":75,"owner_name":76,"owner_avatar_url":77,"owner_bio":78,"owner_company":78,"owner_location":78,"owner_email":79,"owner_twitter":78,"owner_website":80,"owner_url":81,"languages":82,"stars":91,"forks":92,"last_commit_at":93,"license":94,"difficulty_score":95,"env_os":96,"env_gpu":97,"env_ram":98,"env_deps":99,"category_tags":105,"github_topics":106,"view_count":23,"oss_zip_url":78,"oss_zip_packed_at":78,"status":16,"created_at":112,"updated_at":113,"faqs":114,"releases":145},3572,"tinghuiz\u002FSfMLearner","SfMLearner","An unsupervised learning framework for depth and ego-motion estimation from monocular videos","SfMLearner 是一个基于深度学习的开源框架，专为从单目视频中估算场景深度和相机自身运动（Ego-motion）而设计。它核心解决了传统视觉方法依赖昂贵激光雷达或多摄像头标定，以及监督学习需要大量人工标注真值数据的痛点。通过创新的无监督学习机制，SfMLearner 仅需普通的连续视频序列即可训练模型，利用几何一致性约束自动推导三维结构信息，大幅降低了数据获取与处理门槛。\n\n该工具特别适合计算机视觉领域的研究人员、算法工程师及高校学生使用，尤其是那些希望探索三维重建、SLAM（即时定位与地图构建）或自动驾驶感知技术，但受限于标注数据资源的团队。其显著的技术亮点在于无需任何深度或位姿的真实标签，仅凭视频帧间的投影关系就能实现高精度的预测；在 KITTI 数据集上的实测表明，经过优化的模型在深度估计精度上甚至超越了原始论文报告的水平。SfMLearner 提供了完整的训练脚本、数据预处理工具及预训练模型，支持基于 TensorFlow 快速复现经典算法，是进入无监督视觉几何学习领域的理想起点。","# SfMLearner\nThis codebase implements the system described in the paper:\n\nUnsupervised Learning of Depth and Ego-Motion from Video\n\n[Tinghui Zhou](https:\u002F\u002Fpeople.eecs.berkeley.edu\u002F~tinghuiz\u002F), [Matthew Brown](http:\u002F\u002Fmatthewalunbrown.com\u002Fresearch\u002Fresearch.html), [Noah Snavely](http:\u002F\u002Fwww.cs.cornell.edu\u002F~snavely\u002F), [David G. Lowe](http:\u002F\u002Fwww.cs.ubc.ca\u002F~lowe\u002Fhome.html)\n\nIn CVPR 2017 (**Oral**).\n\nSee the [project webpage](https:\u002F\u002Fpeople.eecs.berkeley.edu\u002F~tinghuiz\u002Fprojects\u002FSfMLearner\u002F) for more details. Please contact Tinghui Zhou (tinghuiz@berkeley.edu) if you have any questions.\n\n\u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Ftinghuiz_SfMLearner_readme_a662016f8d42.gif' width=320>\n\n## Prerequisites\nThis codebase was developed and tested with Tensorflow 1.0, CUDA 8.0 and Ubuntu 16.04.\n\n## Running the single-view depth demo\nWe provide the demo code for running our single-view depth prediction model. First, download the pre-trained model from this [Google Drive](https:\u002F\u002Fdrive.google.com\u002Ffile\u002Fd\u002F1AH5LV29Fijrz_QI3Th6ogtXJKXhd8Nm9\u002Fview?usp=sharing), and put the model files under `models\u002F`. Then you can use the provided ipython-notebook `demo.ipynb` to run the demo.\n\n## Preparing training data\nIn order to train the model using the provided code, the data needs to be formatted in a certain manner. \n\nFor [KITTI](http:\u002F\u002Fwww.cvlibs.net\u002Fdatasets\u002Fkitti\u002Fraw_data.php), first download the dataset using this [script](http:\u002F\u002Fwww.cvlibs.net\u002Fdownload.php?file=raw_data_downloader.zip) provided on the official website, and then run the following command\n```bash\npython data\u002Fprepare_train_data.py --dataset_dir=\u002Fpath\u002Fto\u002Fraw\u002Fkitti\u002Fdataset\u002F --dataset_name='kitti_raw_eigen' --dump_root=\u002Fpath\u002Fto\u002Fresulting\u002Fformatted\u002Fdata\u002F --seq_length=3 --img_width=416 --img_height=128 --num_threads=4\n```\nFor the pose experiments, we used the KITTI odometry split, which can be downloaded [here](http:\u002F\u002Fwww.cvlibs.net\u002Fdatasets\u002Fkitti\u002Feval_odometry.php). Then you can change `--dataset_name` option to `kitti_odom` when preparing the data.\n\nFor [Cityscapes](https:\u002F\u002Fwww.cityscapes-dataset.com\u002F), download the following packages: 1) `leftImg8bit_sequence_trainvaltest.zip`, 2) `camera_trainvaltest.zip`. Then run the following command\n```bash\npython data\u002Fprepare_train_data.py --dataset_dir=\u002Fpath\u002Fto\u002Fcityscapes\u002Fdataset\u002F --dataset_name='cityscapes' --dump_root=\u002Fpath\u002Fto\u002Fresulting\u002Fformatted\u002Fdata\u002F --seq_length=3 --img_width=416 --img_height=171 --num_threads=4\n```\nNotice that for Cityscapes the `img_height` is set to 171 because we crop out the bottom part of the image that contains the car logo, and the resulting image will have height 128.\n\n## Training\nOnce the data are formatted following the above instructions, you should be able to train the model by running the following command\n```bash\npython train.py --dataset_dir=\u002Fpath\u002Fto\u002Fthe\u002Fformatted\u002Fdata\u002F --checkpoint_dir=\u002Fwhere\u002Fto\u002Fstore\u002Fcheckpoints\u002F --img_width=416 --img_height=128 --batch_size=4\n```\nYou can then start a `tensorboard` session by\n```bash\ntensorboard --logdir=\u002Fpath\u002Fto\u002Ftensorflow\u002Flog\u002Ffiles --port=8888\n```\nand visualize the training progress by opening [https:\u002F\u002Flocalhost:8888](https:\u002F\u002Flocalhost:8888) on your browser. If everything is set up properly, you should start seeing reasonable depth prediction after ~100K iterations when training on KITTI. \n\n### Notes\nAfter adding data augmentation and removing batch normalization (along with some other minor tweaks), we have been able to train depth models better than what was originally reported in the paper even without using additional Cityscapes data or the explainability regularization. The provided pre-trained model was trained on KITTI only with smooth weight set to 0.5, and achieved the following performance on the Eigen test split (Table 1 of the paper):\n\n| Abs Rel | Sq Rel | RMSE  | RMSE(log) | Acc.1 | Acc.2 | Acc.3 |\n|---------|--------|-------|-----------|-------|-------|-------|\n| 0.183   | 1.595  | 6.709 | 0.270     | 0.734 | 0.902 | 0.959 | \n\nWhen trained on 5-frame snippets, the pose model obtains the following performanace on the KITTI odometry split (Table 3 of the paper):\n\n| Seq. 09            | Seq. 10            |\n|--------------------|--------------------|\n| 0.016 (std. 0.009) | 0.013 (std. 0.009) |\n\n## Evaluation on KITTI\n\n### Depth\nWe provide evaluation code for the single-view depth experiment on KITTI. First, download our predictions (~140MB) from this [Google Drive](https:\u002F\u002Fdrive.google.com\u002Ffile\u002Fd\u002F1ERB2vUH_6to8NI9KN-ug-ijcWaQf9SIp\u002Fview?usp=sharing) and put them into `kitti_eval\u002F`.\n\nThen run\n```bash\npython kitti_eval\u002Feval_depth.py --kitti_dir=\u002Fpath\u002Fto\u002Fraw\u002Fkitti\u002Fdataset\u002F --pred_file=kitti_eval\u002Fkitti_eigen_depth_predictions.npy\n```\nIf everything runs properly, you should get the numbers for `Ours(CS+K)` in Table 1 of the paper. To get the numbers for `Ours cap 50m (CS+K)`, set an additional flag `--max_depth=50` when executing the above command.\n\n### Pose\nWe provide evaluation code for the pose estimation experiment on KITTI. First, download the predictions and ground-truth pose data from this [Google Drive](https:\u002F\u002Fdrive.google.com\u002Ffile\u002Fd\u002F1BqTIY_PBRkFvKrFvqlhPsEaouSdo42ZZ\u002Fview?usp=sharing).\n\nNotice that all the predictions and ground-truth are 5-frame snippets with the format of `timestamp tx ty tz qx qy qz qw` consistent with the [TUM evaluation toolkit](https:\u002F\u002Fvision.in.tum.de\u002Fdata\u002Fdatasets\u002Frgbd-dataset\u002Ftools#evaluation). Then you could run \n```bash\npython kitti_eval\u002Feval_pose.py --gtruth_dir=\u002Fdirectory\u002Fof\u002Fgroundtruth\u002Ftrajectory\u002Ffiles\u002F --pred_dir=\u002Fdirectory\u002Fof\u002Fpredicted\u002Ftrajectory\u002Ffiles\u002F\n```\nto obtain the results reported in Table 3 of the paper. For instance, to get the results of `Ours` for `Seq. 10` you could run\n```bash\npython kitti_eval\u002Feval_pose.py --gtruth_dir=kitti_eval\u002Fpose_data\u002Fground_truth\u002F10\u002F --pred_dir=kitti_eval\u002Fpose_data\u002Fours_results\u002F10\u002F\n```\n\n## KITTI Testing code\n\n### Depth\nOnce you have model trained, you can obtain the single-view depth predictions on the KITTI eigen test split formatted properly for evaluation by running\n```bash\npython test_kitti_depth.py --dataset_dir \u002Fpath\u002Fto\u002Fraw\u002Fkitti\u002Fdataset\u002F --output_dir \u002Fpath\u002Fto\u002Foutput\u002Fdirectory --ckpt_file \u002Fpath\u002Fto\u002Fpre-trained\u002Fmodel\u002Ffile\u002F\n```\n\n### Pose\nWe also provide sample testing code for obtaining pose predictions on the KITTI dataset with a pre-trained model. You can obtain the predictions formatted as above for pose evaluation by running\n```bash\npython test_kitti_pose.py --test_seq [sequence_id] --dataset_dir \u002Fpath\u002Fto\u002FKITTI\u002Fodometry\u002Fset\u002F --output_dir \u002Fpath\u002Fto\u002Foutput\u002Fdirectory\u002F --ckpt_file \u002Fpath\u002Fto\u002Fpre-trained\u002Fmodel\u002Ffile\u002F\n```\nA sample model trained on 5-frame snippets can be downloaded at this [Google Drive](https:\u002F\u002Fdrive.google.com\u002Ffile\u002Fd\u002F1vMg9UbK4kQSvFtJrzv0lfCVAoTN-we1y\u002Fview?usp=sharing). \n\nThen you can obtain predictions on, say `Seq. 9`, by running\n```bash\npython test_kitti_pose.py --test_seq 9 --dataset_dir \u002Fpath\u002Fto\u002FKITTI\u002Fodometry\u002Fset\u002F --output_dir \u002Fpath\u002Fto\u002Foutput\u002Fdirectory\u002F --ckpt_file models\u002Fmodel-100280\n```\n\n## Other implementations\n[Pytorch](https:\u002F\u002Fgithub.com\u002FClementPinard\u002FSfmLearner-Pytorch) (by Clement Pinard)\n\n## Disclaimer\nThis is the authors' implementation of the system described in the paper and not an official Google product.\n","# SfMLearner\n本代码库实现了论文中描述的系统：\n\n从视频中无监督学习深度与自运动\n\n[Tinghui Zhou](https:\u002F\u002Fpeople.eecs.berkeley.edu\u002F~tinghuiz\u002F)、[Matthew Brown](http:\u002F\u002Fmatthewalunbrown.com\u002Fresearch\u002Fresearch.html)、[Noah Snavely](http:\u002F\u002Fwww.cs.cornell.edu\u002F~snavely\u002F)、[David G. Lowe](http:\u002F\u002Fwww.cs.ubc.ca\u002F~lowe\u002Fhome.html)\n\n发表于 CVPR 2017（**口头报告**）。\n\n更多详情请参阅[项目主页](https:\u002F\u002Fpeople.eecs.berkeley.edu\u002F~tinghuiz\u002Fprojects\u002FSfMLearner\u002F)。如有任何疑问，请联系 Tinghui Zhou (tinghuiz@berkeley.edu)。\n\n\u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Ftinghuiz_SfMLearner_readme_a662016f8d42.gif' width=320>\n\n## 前置条件\n本代码库是在 Tensorflow 1.0、CUDA 8.0 和 Ubuntu 16.04 环境下开发并测试的。\n\n## 运行单目深度演示\n我们提供了运行单目深度预测模型的演示代码。首先，从此 [Google Drive](https:\u002F\u002Fdrive.google.com\u002Ffile\u002Fd\u002F1AH5LV29Fijrz_QI3Th6ogtXJKXhd8Nm9\u002Fview?usp=sharing) 下载预训练模型，并将模型文件放置在 `models\u002F` 目录下。然后，您可以使用提供的 ipython-notebook `demo.ipynb` 来运行演示。\n\n## 准备训练数据\n为了使用提供的代码训练模型，数据需要按照特定格式进行整理。\n\n对于 [KITTI](http:\u002F\u002Fwww.cvlibs.net\u002Fdatasets\u002Fkitti\u002Fraw_data.php)，首先使用官方网站提供的此 [脚本](http:\u002F\u002Fwww.cvlibs.net\u002Fdownload.php?file=raw_data_downloader.zip) 下载数据集，然后运行以下命令：\n```bash\npython data\u002Fprepare_train_data.py --dataset_dir=\u002Fpath\u002Fto\u002Fraw\u002Fkitti\u002Fdataset\u002F --dataset_name='kitti_raw_eigen' --dump_root=\u002Fpath\u002Fto\u002Fresulting\u002Fformatted\u002Fdata\u002F --seq_length=3 --img_width=416 --img_height=128 --num_threads=4\n```\n\n对于位姿实验，我们使用了 KITTI 的里程计分割数据集，可在此处下载：[KITTI 里程计分割数据集](http:\u002F\u002Fwww.cvlibs.net\u002Fdatasets\u002Fkitti\u002Feval_odometry.php)。准备数据时，只需将 `--dataset_name` 参数更改为 `kitti_odom` 即可。\n\n对于 [Cityscapes](https:\u002F\u002Fwww.cityscapes-dataset.com\u002F)，请下载以下两个压缩包：1) `leftImg8bit_sequence_trainvaltest.zip`，2) `camera_trainvaltest.zip`。然后运行以下命令：\n```bash\npython data\u002Fprepare_train_data.py --dataset_dir=\u002Fpath\u002Fto\u002Fcityscapes\u002Fdataset\u002F --dataset_name='cityscapes' --dump_root=\u002Fpath\u002Fto\u002Fresulting\u002Fformatted\u002Fdata\u002F --seq_length=3 --img_width=416 --img_height=171 --num_threads=4\n```\n\n请注意，对于 Cityscapes 数据集，`img_height` 被设置为 171，因为我们裁剪掉了图像底部包含汽车标志的部分，最终得到的图像高度为 128。\n\n## 训练\n按照上述说明完成数据格式化后，您应该可以通过运行以下命令来训练模型：\n```bash\npython train.py --dataset_dir=\u002Fpath\u002Fto\u002Fthe\u002Fformatted\u002Fdata\u002F --checkpoint_dir=\u002Fwhere\u002Fto\u002Fstore\u002Fcheckpoints\u002F --img_width=416 --img_height=128 --batch_size=4\n```\n\n随后，您可以启动一个 `tensorboard` 会话：\n```bash\ntensorboard --logdir=\u002Fpath\u002Fto\u002Ftensorflow\u002Flog\u002Ffiles --port=8888\n```\n\n并在浏览器中打开 [https:\u002F\u002Flocalhost:8888](https:\u002F\u002Flocalhost:8888) 查看训练进度。如果一切设置正确，在 KITTI 数据集上训练时，大约经过 10 万次迭代后，您应该会开始看到合理的深度预测结果。\n\n### 备注\n在加入数据增强并移除批归一化（以及其他一些小调整）之后，即使不使用额外的 Cityscapes 数据或可解释性正则化，我们也能够训练出比论文中最初报告的性能更好的深度模型。提供的预训练模型仅基于 KITTI 数据集训练，平滑权重设为 0.5，在 Eigen 测试分割上的表现如下（论文表 1）：\n\n| Abs Rel | Sq Rel | RMSE  | RMSE(log) | Acc.1 | Acc.2 | Acc.3 |\n|---------|--------|-------|-----------|-------|-------|-------|\n| 0.183   | 1.595  | 6.709 | 0.270     | 0.734 | 0.902 | 0.959 | \n\n当使用 5 帧片段进行训练时，位姿模型在 KITTI 里程计分割上的表现如下（论文表 3）：\n\n| 序列 09            | 序列 10            |\n|--------------------|--------------------|\n| 0.016 (标准差 0.009) | 0.013 (标准差 0.009) |\n\n## 在 KITTI 上的评估\n\n### 深度\n我们提供了 KITTI 单目深度实验的评估代码。首先，从此 [Google Drive](https:\u002F\u002Fdrive.google.com\u002Ffile\u002Fd\u002F1ERB2vUH_6to8NI9KN-ug-ijcWaQf9SIp\u002Fview?usp=sharing) 下载我们的预测结果（约 140MB），并将其放入 `kitti_eval\u002F` 目录中。\n\n然后运行：\n```bash\npython kitti_eval\u002Feval_depth.py --kitti_dir=\u002Fpath\u002Fto\u002Fraw\u002Fkitti\u002Fdataset\u002F --pred_file=kitti_eval\u002Fkitti_eigen_depth_predictions.npy\n```\n\n如果一切正常，您将得到论文表 1 中“Ours(CS+K)”一行的数据。若要获得“Ours cap 50m (CS+K)”一行的数据，可在执行上述命令时添加额外的参数 `--max_depth=50`。\n\n### 位姿\n我们还提供了 KITTI 位姿估计实验的评估代码。首先，从此 [Google Drive](https:\u002F\u002Fdrive.google.com\u002Ffile\u002Fd\u002F1BqTIY_PBRkFvKrFvqlhPsEaouSdo42ZZ\u002Fview?usp=sharing) 下载预测结果和真实位姿数据。\n\n请注意，所有的预测和真实位姿数据都是 5 帧片段，格式为 `timestamp tx ty tz qx qy qz qw`，与 [TUM 评估工具箱](https:\u002F\u002Fvision.in.tum.de\u002Fdata\u002Fdatasets\u002Frgbd-dataset\u002Ftools#evaluation) 的格式一致。然后，您可以运行以下命令：\n```bash\npython kitti_eval\u002Feval_pose.py --gtruth_dir=\u002Fdirectory\u002Fof\u002Fgroundtruth\u002Ftrajectory\u002Ffiles\u002F --pred_dir=\u002Fdirectory\u002Fof\u002Fpredicted\u002Ftrajectory\u002Ffiles\u002F\n```\n\n以获取论文表 3 中报告的结果。例如，要获得“Ours”在“序列 10”上的结果，可以运行：\n```bash\npython kitti_eval\u002Feval_pose.py --gtruth_dir=kitti_eval\u002Fpose_data\u002Fground_truth\u002F10\u002F --pred_dir=kitti_eval\u002Fpose_data\u002Fours_results\u002F10\u002F\n```\n\n## KITTI 测试代码\n\n### 深度\n一旦模型训练完成，您可以通过运行以下命令获得 KITTI Eigen 测试分割上的单目深度预测结果，这些结果已按评估要求正确格式化：\n```bash\npython test_kitti_depth.py --dataset_dir \u002Fpath\u002Fto\u002Fraw\u002Fkitti\u002Fdataset\u002F --output_dir \u002Fpath\u002Fto\u002Foutput\u002Fdirectory --ckpt_file \u002Fpath\u002Fto\u002Fpre-trained\u002Fmodel\u002Ffile\u002F\n```\n\n### 位姿\n我们还提供了使用预训练模型在 KITTI 数据集上获取位姿预测的示例测试代码。您可以运行以下命令，以获得符合位姿评估要求的预测结果：\n```bash\npython test_kitti_pose.py --test_seq [sequence_id] --dataset_dir \u002Fpath\u002Fto\u002FKITTI\u002Fodometry\u002Fset\u002F --output_dir \u002Fpath\u002Fto\u002Foutput\u002Fdirectory\u002F --ckpt_file \u002Fpath\u002Fto\u002Fpre-trained\u002Fmodel\u002Ffile\u002F\n```\n\n一个基于 5 帧片段训练的示例模型可以从此 [Google Drive](https:\u002F\u002Fdrive.google.com\u002Ffile\u002Fd\u002F1vMg9UbK4kQSvFtJrzv0lfCVAoTN-we1y\u002Fview?usp=sharing) 下载。\n\n然后，例如要获取“序列 9”的预测结果，可以运行：\n```bash\npython test_kitti_pose.py --test_seq 9 --dataset_dir \u002Fpath\u002Fto\u002FKITTI\u002Fodometry\u002Fset\u002F --output_dir \u002Fpath\u002Fto\u002Foutput\u002Fdirectory\u002F --ckpt_file models\u002Fmodel-100280\n```\n\n## 其他实现\n[PyTorch](https:\u002F\u002Fgithub.com\u002FClementPinard\u002FSfmLearner-Pytorch)（由 Clement Pinard 提供）\n\n## 免责声明\n这是作者对论文中所描述系统的实现，并非 Google 的官方产品。","# SfMLearner 快速上手指南\n\nSfMLearner 是一个基于深度学习的开源项目，用于从视频中无监督地学习深度估计和自运动（Ego-Motion）。本项目复现了 CVPR 2017 Oral 论文《Unsupervised Learning of Depth and Ego-Motion from Video》中的系统。\n\n## 环境准备\n\n本代码库主要在以下环境中开发和测试，建议尽量匹配该配置以避免兼容性问题：\n\n*   **操作系统**: Ubuntu 16.04\n*   **深度学习框架**: TensorFlow 1.0\n*   **GPU 加速**: CUDA 8.0\n*   **其他依赖**: Python, NumPy, SciPy 等常规科学计算库\n\n> **注意**：由于项目基于较旧的 TensorFlow 1.0 版本，建议在独立的虚拟环境（如 `virtualenv` 或 `conda`）中安装依赖，以免干扰现有开发环境。\n\n## 安装步骤\n\n### 1. 克隆代码库\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Ftinghuiz\u002FSfMLearner.git\ncd SfMLearner\n```\n\n### 2. 下载预训练模型（可选，用于演示）\n若仅需运行单目深度预测演示，无需重新训练，可直接下载预训练模型：\n1. 访问 [Google Drive 链接](https:\u002F\u002Fdrive.google.com\u002Ffile\u002Fd\u002F1AH5LV29Fijrz_QI3Th6ogtXJKXhd8Nm9\u002Fview?usp=sharing) 下载模型文件。\n   *国内用户若下载受阻，可尝试使用第三方 Google Drive 下载加速工具或寻找国内镜像源。*\n2. 将下载的模型文件解压并放置于项目根目录下的 `models\u002F` 文件夹中。\n\n### 3. 准备训练数据（如需重新训练）\n若需从头训练模型，需先将数据集格式化为特定结构。\n\n**KITTI 数据集示例：**\n首先通过[官方脚本](http:\u002F\u002Fwww.cvlibs.net\u002Fdownload.php?file=raw_data_downloader.zip)下载 KITTI Raw 数据，然后运行以下命令进行预处理：\n```bash\npython data\u002Fprepare_train_data.py --dataset_dir=\u002Fpath\u002Fto\u002Fraw\u002Fkitti\u002Fdataset\u002F --dataset_name='kitti_raw_eigen' --dump_root=\u002Fpath\u002Fto\u002Fresulting\u002Fformatted\u002Fdata\u002F --seq_length=3 --img_width=416 --img_height=128 --num_threads=4\n```\n*注：请将 `\u002Fpath\u002Fto\u002F...` 替换为实际的本地路径。*\n\n**Cityscapes 数据集示例：**\n下载 `leftImg8bit_sequence_trainvaltest.zip` 和 `camera_trainvaltest.zip` 后运行：\n```bash\npython data\u002Fprepare_train_data.py --dataset_dir=\u002Fpath\u002Fto\u002Fcityscapes\u002Fdataset\u002F --dataset_name='cityscapes' --dump_root=\u002Fpath\u002Fto\u002Fresulting\u002Fformatted\u002Fdata\u002F --seq_length=3 --img_width=416 --img_height=171 --num_threads=4\n```\n\n## 基本使用\n\n### 运行单目深度预测演示\n这是最简单的使用方式，用于验证环境和预训练模型。确保已完成“安装步骤”中的模型下载，然后使用提供的 Jupyter Notebook 运行演示：\n\n```bash\njupyter notebook demo.ipynb\n```\n在浏览器打开的 Notebook 中按顺序执行单元格，即可看到深度预测结果的可视化。\n\n### 开始训练模型\n数据格式化完成后，使用以下命令启动训练：\n```bash\npython train.py --dataset_dir=\u002Fpath\u002Fto\u002Fthe\u002Fformatted\u002Fdata\u002F --checkpoint_dir=\u002Fwhere\u002Fto\u002Fstore\u002Fcheckpoints\u002F --img_width=416 --img_height=128 --batch_size=4\n```\n\n训练过程中，可启动 TensorBoard 监控进度：\n```bash\ntensorboard --logdir=\u002Fpath\u002Fto\u002Ftensorflow\u002Flog\u002Ffiles --port=8888\n```\n在浏览器访问 `https:\u002F\u002Flocalhost:8888` 查看损失曲线和深度预测效果。通常在 KITTI 数据集上训练约 100K 次迭代后可获得合理的深度预测结果。\n\n### 模型评估与测试\n训练完成后，可使用提供的脚本在 KITTI 数据集上进行深度或姿态的测试与评估：\n\n**深度测试：**\n```bash\npython test_kitti_depth.py --dataset_dir \u002Fpath\u002Fto\u002Fraw\u002Fkitti\u002Fdataset\u002F --output_dir \u002Fpath\u002Fto\u002Foutput\u002Fdirectory --ckpt_file \u002Fpath\u002Fto\u002Fpre-trained\u002Fmodel\u002Ffile\u002F\n```\n\n**姿态测试（以序列 9 为例）：**\n```bash\npython test_kitti_pose.py --test_seq 9 --dataset_dir \u002Fpath\u002Fto\u002FKITTI\u002Fodometry\u002Fset\u002F --output_dir \u002Fpath\u002Fto\u002Foutput\u002Fdirectory\u002F --ckpt_file models\u002Fmodel-100280\n```","一家自动驾驶初创公司的感知算法团队，正试图利用车载单目摄像头采集的海量路测视频数据，构建高精度的深度估计与自运动估算模型。\n\n### 没有 SfMLearner 时\n- **标注成本高昂**：获取像素级深度真值需要昂贵的激光雷达设备配合复杂的人工校准，严重制约了数据规模。\n- **场景泛化能力弱**：依赖传统几何方法或监督学习模型，一旦进入未标注的新城市或恶劣天气，深度预测效果急剧下降。\n- **相机位姿解算困难**：缺乏精确的 GPS\u002FIMU 数据时，难以从单一视频流中准确还原车辆的行驶轨迹和旋转角度。\n- **迭代周期漫长**：每次调整模型结构都需重新进行大规模数据标注，导致算法验证和上线周期以月计算。\n\n### 使用 SfMLearner 后\n- **实现零标注训练**：直接利用未标注的单目视频序列进行无监督学习，通过视图合成误差自动优化，彻底省去了深度真值标注环节。\n- **显著提升泛化性**：模型学会了从视频时序中理解几何结构，在未见过的城市道路场景中也能输出鲁棒的深度图。\n- **同步估算位姿**：在预测深度的同时，高精度地反推出相机的六自由度运动轨迹，无需额外传感器即可实现视觉里程计功能。\n- **加速研发闭环**：团队可即时导入新采集的路测视频进行微调，将模型迭代周期从数月缩短至数天，快速适应不同路况。\n\nSfMLearner 通过无监督学习框架，让企业仅凭普通单目视频就能低成本构建出具备深度感知与自我定位能力的视觉系统。","https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Ftinghuiz_SfMLearner_b4a57eaf.png","tinghuiz","Tinghui Zhou","https:\u002F\u002Foss.gittoolsai.com\u002Favatars\u002Ftinghuiz_1c1e3155.png",null,"tinghuiz@eecs.berkeley.edu","https:\u002F\u002Fpeople.eecs.berkeley.edu\u002F~tinghuiz\u002F","https:\u002F\u002Fgithub.com\u002Ftinghuiz",[83,87],{"name":84,"color":85,"percentage":86},"Jupyter Notebook","#DA5B0B",61.2,{"name":88,"color":89,"percentage":90},"Python","#3572A5",38.8,2015,555,"2026-03-16T03:45:28","MIT",4,"Linux (Ubuntu 16.04)","需要 NVIDIA GPU，CUDA 8.0","未说明",{"notes":100,"python":101,"dependencies":102},"该代码库是在 Ubuntu 16.04、TensorFlow 1.0 和 CUDA 8.0 环境下开发和测试的。运行单目深度演示需下载预训练模型并放入 models\u002F 目录。训练数据（如 KITTI 或 Cityscapes）需使用提供的脚本进行特定格式化处理。建议使用 TensorBoard 可视化训练进度。","未说明 (基于 TF 1.0 推测为 2.7 或 3.5\u002F3.6)",[103,104],"tensorflow==1.0","CUDA==8.0",[13],[107,108,109,110,111],"deep-learning","depth-prediction","visual-odometry","self-supervised-learning","unsupervised-learning","2026-03-27T02:49:30.150509","2026-04-06T07:12:54.023138",[115,120,125,130,135,140],{"id":116,"question_zh":117,"answer_zh":118,"source_url":119},16355,"如何在 TensorFlow 2.0 中解决模型不收敛或深度图全黑\u002F全零的问题？","在 TF 2.0 中训练困难通常与平滑损失（smooth loss）的超参数有关。原始代码中该值设为 0.5，这是一个临界值。如果收敛缓慢或停滞，可以尝试调整该值：稍高的值可能导致收敛到早期状态，稍低的值收敛更快但可能产生更多“黑洞”。此外，建议检查平滑损失的下采样因子，将初始值从 0.5（每层尺度损失权重减半）改为 1\u002Fsqrt(2) 可能有助于收敛。随机种子（如原代码中的 '8964'）在不同 TF 版本间表现可能不同，也可能影响结果。","https:\u002F\u002Fgithub.com\u002Ftinghuiz\u002FSfMLearner\u002Fissues\u002F124",{"id":121,"question_zh":122,"answer_zh":123,"source_url":124},16356,"运行 prepare_train_data.py 时出现 'Namespace' object has no attribute 'dump_root' 错误怎么办？","该错误通常是由于命令行参数解析问题导致的。确保在运行脚本时正确传递了所有必需的参数，特别是 --dump_root 参数。检查命令格式是否正确，例如：python data\u002Fprepare_train_data.py --dataset_dir=... --dataset_name='kitti_raw_eigen' --dump_root=... --seq_length=3 --img_width=416 --img_height=128 --num_threads=4。如果问题依旧，可能是代码版本不匹配，建议拉取最新代码或提交 PR 修复。","https:\u002F\u002Fgithub.com\u002Ftinghuiz\u002FSfMLearner\u002Fissues\u002F93",{"id":126,"question_zh":127,"answer_zh":128,"source_url":129},16357,"测试时设置 is_training=False 导致 BatchNorm 报错如何解决？","这是由于 BatchNorm 层的移动均值（moving_mean）和移动方差（moving_variance）未正确初始化或保存所致。维护者已在最新更新中完全移除了 batch_norm 以解决此问题。如果你使用的是旧版本，建议升级到最新版代码。若必须使用旧版，可尝试将 moving_mean 和 moving_variance 变量添加到 trainable_variables 中，或替换训练操作创建方式为：self.train_op = slim.learning.create_train_op(total_loss, optim)。","https:\u002F\u002Fgithub.com\u002Ftinghuiz\u002FSfMLearner\u002Fissues\u002F17",{"id":131,"question_zh":132,"answer_zh":133,"source_url":134},16358,"如何评估模型输出的深度图？如何将 [0,1] 的范围恢复为绝对深度值？","模型输出的深度图被缩放到 [0,1] 范围。要恢复绝对深度值进行评估，需要使用中值缩放方法（median scaling）。具体做法是计算预测深度图的中值与真实深度图中值之间的比例因子，然后将整个预测图乘以该因子。维护者已更新仓库包含深度评估代码，可直接参考使用。该方法通过比较预测与真实深度的中值来确定缩放比例，已被证明在无监督深度学习中有效。","https:\u002F\u002Fgithub.com\u002Ftinghuiz\u002FSfMLearner\u002Fissues\u002F7",{"id":136,"question_zh":137,"answer_zh":138,"source_url":139},16359,"如何使用自己的视频数据预测姿态（pose）？","要使用自定义视频数据预测姿态，首先将视频转换为图像序列。然后，类似于 test_depth_kitti.py 中的方法，将长度为 FLAGS.seq_length 的图像序列输入到 pose_exp 函数中。你需要创建一个占位符（placeholder），形状为 [batch_size, height, width, seq_length * 3]。函数将输出 (seq_length - 1) 个自由度（DoF）向量表示姿态变化。此过程不需要内参矩阵（intrinsics matrix）。","https:\u002F\u002Fgithub.com\u002Ftinghuiz\u002FSfMLearner\u002Fissues\u002F83",{"id":141,"question_zh":142,"answer_zh":143,"source_url":144},16360,"在自定义数据集上训练时深度图全白（值接近零）且不收敛怎么办？","如果在自定义数据集上训练时深度图全白且值接近零，即使总损失在下降，可能是由于相机内参矩阵（intrinsics matrix）设置不正确或数据集预处理有问题。确保你的数据集结构与 KITTI 一致，并根据图像尺寸正确缩放内参矩阵。虽然投影误差看起来正常，但错误的内参仍可能导致深度估计失败。此外，检查视差值分布是否平滑，如果不平滑可能需要调整学习率、损失权重或其他超参数。建议对比 KITTI 数据集的训练过程，逐步排查差异。","https:\u002F\u002Fgithub.com\u002Ftinghuiz\u002FSfMLearner\u002Fissues\u002F53",[]]