[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114628":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":11,"contributorsCount":11,"subscribersCount":11,"size":11,"stars1d":13,"stars7d":14,"stars30d":15,"stars90d":11,"forks30d":11,"starsTrendScore":16,"compositeScore":17,"rankGlobal":8,"rankLanguage":8,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":19,"hasPages":19,"topics":21,"createdAt":8,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":11,"starSnapshotCount":11,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},114628,"BWM-Forge","Lcixs\u002FBWM-Forge","Lcixs",null,"Python",210,0,61,33,101,127,133,87,"Apache License 2.0",false,"main",[],"2026-11-20 05:09:32","2026-11-23 20:48:12","\u003Ch1 align=\"center\">BWM-Forge: Agentic World Programming for Embodied Intelligence\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\n  \u003Cstrong>English\u003C\u002Fstrong> | \u003Ca href=\"README_CN.md\">简体中文\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cdiv align=\"center\">\n\n[![Project Page](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%F0%9F%8C%90%20Project%20Page-Demo-00bfff)](https:\u002F\u002Fbwm-forge.github.io\u002F)\n[![Paper](https:\u002F\u002Fimg.shields.io\u002Fstatic\u002Fv1?label=Paper&message=PDF&color=red&logo=arxiv)](https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.16221)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-Apache--2.0-green)](LICENSE)\n\n\u003C\u002Fdiv>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"examples\u002Fmain.jpg\" width=\"100%\" alt=\"BWM-Forge overview\">\n\u003C\u002Fp>\n\n**BWM-Forge** generates controllable robot videos by *programming the world* instead of predicting pixels end to end. A coding agent writes editable Blender scene programs that specify objects, robot motion, and cameras; Blender renders them into a **proxy video**; a video generation model then adds realistic appearance on top of that structure and motion.\n\nBecause geometry, motion, and viewpoint stay explicit in code, you can move one object, swap in a different robot, or film the same interaction from a new camera without starting over. This repository provides the full pipeline and a local Gradio workspace that brings input processing, Blender modeling, video generation, human review, and a reusable experience store together in one place.\n\n## 📖 Contents\n\n- [Highlights](#highlights)\n- [Framework](#framework)\n- [Demo](#demo)\n- [Quick Start](#quick-start)\n- [User Guide](#user-guide)\n- [Contributors](#contributors)\n- [Citation](#citation)\n- [License](#license)\n\n---\n\n\u003Ca id=\"highlights\">\u003C\u002Fa>\n\n## 🌟 Highlights\n\n- **Three paradigms**: Generate motion from spatial semantics, motion priors, or real demonstrations.\n- **Multiple embodiments**: Support robot arms, humanoids, robot dogs, and dexterous hands, with local URDF import including mesh resources.\n- **Staged, editable modeling**: Scene, robot, and composed animation are built as separate Blender stages. Every round keeps its `.blend` project, scripts, and previews, so results are revised rather than regenerated.\n- **Viewpoint control** Ask for a new camera in a revision while the scene layout, robot pose, and animation stay fixed, or reload a finished task to film it from another view.\n- **Evaluate, then revise**: Generate videos from proxy videos and reference images, using local objective metrics and model-based visual evaluation to guide revisions.\n- **Round tracking and experience reuse**: Modeling and rendering rules distilled from finished tasks are retrieved in later tasks.\n\n\u003Ca id=\"framework\">\u003C\u002Fa>\n\n## 🧩 Framework\n\nThe app runs four stages in order: **Input → Blender (Scene → Robot → Composed) → Render → Harness**. \n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"examples\u002FBWM-Forge.jpg\" width=\"100%\" alt=\"BWM-Forge framework\">\n\u003C\u002Fp>\n\n\u003Ca id=\"demo\">\u003C\u002Fa>\n\n## 🎬 Demo\n\nhttps:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F419fc098-b061-4e2d-940e-27fd8a4a3cbf\n\n\u003Ca id=\"quick-start\">\u003C\u002Fa>\n\n## 🚀 Quick Start\n\n### Prerequisites\n\nThe project is currently intended primarily for local use on Windows, with the interface and application running on the same computer.\n\n| Dependency | Description |\n| --- | --- |\n| Python | Version 3.11 or later; a separate environment is recommended |\n| Blender | Requires the Blender executable and its bundled Python; configure the executable path in `config.py` |\n| Python packages | See [requirements.txt](requirements.txt) |\n| Model services | A service supporting the Responses API, plus a video generation service compatible with the current integration |\n| Cloudflared | Temporarily publishes the proxy video during Render. Place `cloudflared.exe` in `Render\u002Ftools\u002F` from the [official releases](https:\u002F\u002Fgithub.com\u002Fcloudflare\u002Fcloudflared\u002Freleases)|\n\nModel requests and video generation require internet access. The full workflow uses a temporary Cloudflare tunnel to make the selected proxy video accessible to the video generation service.\n\n### 1. Install Dependencies\n\nAfter cloning or downloading the repository, run these commands from its root directory:\n\n```bash\nconda create -n bwm python=3.11 -y\nconda activate bwm\npython -m pip install -r requirements.txt\n```\n\nInstall Blender and confirm that it launches locally. Blender is a separate application and is not included in the Python dependencies.\n\n### 2. Configure Models and Services\n\nRuntime settings are centralized in [config.py](config.py). Before your first run, configure at least the following:\n\n| Setting | Purpose |\n| --- | --- |\n| `OPENAI_BASE_URL` | Responses API base URL, such as `https:\u002F\u002Fyour-provider.example\u002Fv1` |\n| `OPENAI_AUTH_FILE` | Path to the credentials file shared by the general model services |\n| `INPUT_MODEL` | Model for analyzing the first frame; must support image input |\n| `BLENDER_MODEL` | Codex model used for Blender modeling |\n| `BLENDER_EXE` | Full path to the local Blender executable |\n| `RENDER_MODEL` | Model for visual video evaluation and stage summaries; must support image input |\n| `HARNESS_MODEL` | Model for organizing and updating experience |\n| `SEEDANCE_BASE_URL` | Video generation service base URL |\n| `SEEDANCE_MODEL` | Video generation model name |\n| `SEEDANCE_AUTH_FILE` | Path to the video service credentials file |\n\nUse model names supported by your provider. Set the general model URL to the API base URL; the application appends `\u002Fresponses`, so you do not need to supply the full endpoint.\n\nBy default, Input, Blender, Render, and Harness share `OPENAI_BASE_URL` and `OPENAI_AUTH_FILE`. To configure them separately, edit each stage's `*_OPENAI_BASE_URL` and `*_OPENAI_AUTH_FILE`. Restart the application after changing the configuration.\n\nThe video service uses a separate request protocol, implemented in [Render\u002Fseedance.py](Render\u002Fseedance.py). When switching providers, check that task submission, status queries, and media input formats are compatible with this implementation.\n\n### 3. Add your API keys\n\nCreate the folder `assets\u002Fapi\u002F` with the two files below, or point `OPENAI_AUTH_FILE` and `SEEDANCE_AUTH_FILE` in `config.py` to other locations.\n\n`assets\u002Fapi\u002Fauth.json`:\n\n```json\n{ \"OPENAI_API_KEY\": \"REPLACE_WITH_YOUR_API_KEY\" }\n```\n\n`assets\u002Fapi\u002Fseedance_auth.json`:\n\n```json\n{ \"SEEDANCE_API_KEY\": \"REPLACE_WITH_YOUR_API_KEY\" }\n```\n\n### 4. Launch\n\nRun this command from the repository root:\n\n```bash\npython -m gui.app\n```\n\nYour browser opens automatically. If it doesn't, go to \u003Chttp:\u002F\u002F127.0.0.1:7860>. The server listens on localhost only.\n\n\u003Ca id=\"user-guide\">\u003C\u002Fa>\n\n## 🧭 User Guide\n\n### Workflow\n\n![workflow](examples\u002FGUI_workflow.gif)\n\n#### 1. Prepare Inputs\n\nSelect a robot type and asset, enter a task description, and choose an input mode:\n\n| Mode | Required Inputs | Motion Source |\n| --- | --- | --- |\n| Spatial semantics | First-frame image, robot asset, task description | Motion inferred from the image and description |\n| Motion priors | First-frame image, robot asset, task description, NPZ \u002F Parquet trajectory, sampling rate | The supplied trajectory serves as a motion reference |\n| Real demonstrations | Robot asset, task description, MP4 \u002F MOV demonstration video | Motion generated from the demonstration video |\n\nFirst-frame images can be PNG, JPG, or WebP. Click **Create task and run Input** to create a task.\n\nTo import an asset, select **Import local robot asset** and enter the URDF path on the computer running the application, along with an asset name. Use an expanded URDF and preserve its relative directory structure for `meshes\u002F`, textures, and other resources. All resource references must resolve locally.\n\n#### 2. Review Blender Results\n\nBlender performs modeling in this order:\n\n1. **Scene**: Build the scene and review its preview image.\n2. **Robot**: Prepare the robot model and review its preview image.\n3. **Composed**: Combine the scene and robot, generate motion, and review the complete proxy video.\n\nClick **Accept and continue** to accept a result, or enter revision instructions, optionally attach reference images, and click **Submit revision**. Project files, scripts, previews, and feedback from each round are saved in the task directory.\n\n#### 3. Generate and Confirm Videos\n\nAfter Blender finishes, click **Continue generation** to start video generation manually. The application sends the proxy video and reference first frame to the video generation service, then evaluates the result. If the initial objective score falls below the configured threshold, the workflow automatically generates at most one corrected version before proceeding to full evaluation and human review.\n\nYou can reevaluate the video, request revisions, or click **Confirm final video** to confirm the result. Once confirmation and the stage summary are complete, Harness archives the results and updates the experience store.\n\n#### 4. Continue from a past task\n\nClick **Load historical task**, pick a task, then click **Load as new task**. This copies a finished task's Blender results into a new task and reopens the Composed review, which makes it easy to make further edits or film the scene from another camera.\n\nA workspace runs one task at a time, and a task waiting for your review also holds that slot.\n\n\u003Ca id=\"trajectory-format\">\u003C\u002Fa>\n\n### Trajectory Format\n\nThe motion priors mode accepts two file formats:\n\n- **NPZ**: A two-dimensional real-valued array named `action`, with shape `(T, D)`.\n- **Parquet**: A column named `action`, where each row contains a real-valued vector of length `D`.\n\nAll values must be finite; NaN, Inf, and object arrays are not accepted. Enter the sampling rate explicitly in the interface.\n\n| Action Space | Columns | Units and Conventions |\n| --- | --- | --- |\n| `joint` | Each column corresponds to an explicitly named independent URDF joint, in the order entered in the interface | Absolute joint positions; radians for rotation and meters for translation |\n| `eef` | Seven fixed columns: `x, y, z, roll, pitch, yaw, gripper` | Absolute TCP pose in the base frame; position in meters, angles in radians, rotation order `Rz @ Ry @ Rx` |\n\nFor `joint` trajectories, robot arms, humanoids, and robot dogs all require joint names in trajectory-column order: the first name corresponds to the first column, and so on. Names must match the independently movable joints in the selected asset's URDF.\n\n`eef` is supported only for robot arms. The gripper channel uses `0` for closed and `1` for open as reference conventions; the actual mapping depends on the asset's structure and calibration.\n\n\u003Ca id=\"outputs-and-experience-store\">\u003C\u002Fa>\n\n### Outputs and Experience Store\n\nEach task is stored under `output\u002F\u003Ctask_id>\u002F`. Its main outputs include:\n\n| Path | Contents |\n| --- | --- |\n| `task.json` | Task metadata and stage status |\n| `input\u002Finput.json` | Input stage handoff data |\n| `blender\u002Ffinal.blend` | Final Blender project |\n| `blender\u002Fwhite_model.mp4` | Final proxy video |\n| `blender\u002Frun.json`, `blender\u002Fstages\u002F` | Modeling rounds and review records |\n| `render\u002F` | Generated videos, version records, and evaluation files |\n| `harness\u002Fresult.json`, `harness\u002Fruns\u002F` | Archived results, experience processing records, and reports |\n\nUse the task records and interface to locate the final files for each version. Render revisions use distinct filenames.\n\nThe experience store defaults to `assets\u002Fexperience-store\u002F`, with JSONL files for general experience and experience applicable to specific contexts. Blender modeling rounds and Render video versions retrieve relevant experience. When a task finishes, Harness uses the stage records to determine how the store should be updated.\n\n\u003Ca id=\"notes\">\u003C\u002Fa>\n\n### Notes\n\n- Task files contain local paths and status information. Keep input files, assets, and task directories in place while the application is running.\n- After modifying a URDF or mesh, delete the asset's cached `blender\u002Frobot.blend`, if present, before rebuilding the model.\n- Model requests, video generation, and revisions consume your own service quota. Model capabilities, service availability, and generation time depend on your configured providers.\n\n\u003Ca id=\"contributors\">\u003C\u002Fa>\n\n## 👥 Contributors\n\n| Role | Contributors |\n| :--- | :--- |\n| **Project Leader** | Lanyun Zhu |\n| **Core Contributors** | Chenming Li, Jianhao Song, Xuanyi Liu, Zhixuan Xu |\n| **Contributors** | Yichen An, Youyuan Jiang, Haotian Zhang, Ziming Wei, Enci Xie, Hongye Fang, Yueyang Li, Zixuan Zhang, Xun Jiang, Xuancheng Xu, Zengrong Lin, Baixu Ji, Chengxing Xie, Yi Guan, Zesi Shen |\n| **Corresponding Authors** | Lanyun Zhu, Xing Xu, Heng Tao Shen |\n\n\u003Ca id=\"citation\">\u003C\u002Fa>\n\n## 📚 Citation\n\n\nIf this project is useful for your research, please consider citing our paper:\n\n```bibtex\n@misc{bwmforge,\n  title         = {{BWM-Forge}: Agentic World Programming for Embodied Intelligence},\n  author        = {{BWM Team}},\n  year          = {2026},\n  eprint        = {2611.16221},\n  archivePrefix = {arXiv},\n  primaryClass  = {cs.RO},\n  url           = {https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.16221}\n}\n```\n\n\u003Ca id=\"license\">\u003C\u002Fa>\n\n## 📜 License\n\nCopyright 2026 BWM-Forge contributors.\n\nThe project's original code and documentation are licensed under the [Apache License 2.0](LICENSE).\n","BWM-Forge 是一个面向具身智能的可编程世界建模框架，通过生成可编辑的 Blender 场景代码（而非端到端像素预测）来合成可控机器人视频。其核心采用分阶段建模：先定义场景几何、再配置机器人URDF模型与运动、最后组合渲染为结构化代理视频，并叠加生成式模型提升视觉真实性。支持多形态机器人（机械臂、人形、四足、灵巧手）、视角重定向、基于语义\u002F先验\u002F示范的运动生成，以及任务经验复用与量化评估驱动的迭代修订。适用于机器人仿真验证、AI训练数据合成、人机交互原型设计等需高可控性与可解释性的研发场景。",2,"2026-11-24 04:49:14","CREATED_QUERY"]