当前位置: 首页 > news >正文

Ubuntu20.04复现ReKep论文详细指南,记录自用

安装环境需知

  • isaac-sim版本4.1 + omnigibson版本1.1.1
  • python版本 3.10

isaac-sim4.5版本+omnigibson版本3.7.1没跑通该代码

配置isaac-sim要求:linux的话要Ubuntu20.04及以上;

【可选】Isaac Sim Compatibility Checker 检查当前机器是否适合跑 Isaac Sim

官方安装文档说明

# 下载
wget https://download.isaacsim.omniverse.nvidia.com/isaac-sim-comp-check%404.5.0-rc.6%2Brelease.675.f1cca148.gl.linux-x86_64.release.zip# 解压缩
unzip "isaac-sim-comp-check@4.5.0-rc.6+release.675.f1cca148.gl.linux-x86_64.release.zip"# 运行脚本检查
bash omni.isaac.sim.compatibility_check.sh

检查结果说明
颜色代表状态,green (excellent), light-green (good), orange (enough, more is recommended) and red (not enough/unsupported)。红色不行,绿色很好。

点击Test Kit 按钮,进行检查。
在这里插入图片描述

一、配置环境,下载behavior-1k数据集:conda + pytorch + isaac-sim + omnigibson

# 1. 创建 conda 环境 
# 注意不能直接用命令安装环境
# conda create -n omnigibson python=3.10 -y  
# 上面命令安装会引入一系列libxcb xorg-libx11与系统自带xcb x11不兼容,使用下面命令重新用conda-forge通道安装python即可解决
# conda remove libxcb xorg-libx11 xorg-libxau xorg-libxdmcp xorg-xorgproto pthread-stubs libstdcxx-ng
# conda install -c conda-forge python=3.10.18
# 使用Conda-Forge 通道避免拉入 libxcb 这样的底层 X 依赖!!!
conda create -n omnigibson python=3.10 -c conda-forge -y# 2. 激活环境
conda activate omnigibson# 3. 安装pytorch
# cu124 根据nvidia-smi命令支持的cuda来修改
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124# 测试安装pytorch
python -c "import torch; print(torch.cuda.is_available(), torch.cuda.get_device_name(0) if torch.cuda.is_available() else 'No CUDA')"# 4.安装omnigibson版本1.1.1
pip install omnigibson# 5. 安装 Isaac Sim4.1.0 + behavior-1k omnigibson数据集
python -m omnigibson.install
# 可选:若需跳过数据集安装(仅安装 Isaac Sim),添加 --no-install-datasets  flag
# python -m omnigibson.install --no-install-datasets# 测试omnigibson
python -m omnigibson.examples.robots.robot_control_example --quickstart

二、拉取rekep项目代码,配置环境

# 进入上面创建的conda环境
conda activate omnigibsongit clone https://github.com/Bailey-24/Rekep.gitcd ReKep
pip install -r requirements.txt# 爆红就pillow降级
# pip install "Pillow<10.0"

三、接入VLM模型 qwen-vl-max-latest API

阿里百炼平台:大模型服务平台百炼控制台,官方会送免费tokens
具体参考教程,调用qwen大模型API
创建API Key并复制
在这里插入图片描述
查看剩余免费token额度
在这里插入图片描述

修改rekep项目中调用模型代码
在这里插入图片描述
改为下面的:

# Rekep-main/constraint_generation.pyimport base64
from openai import OpenAI
import os
import cv2
import json
import parse
import numpy as np
import time
from datetime import datetime# Function to encode the image
def encode_image(image_path):with open(image_path, "rb") as image_file:return base64.b64encode(image_file.read()).decode('utf-8')class ConstraintGenerator:def __init__(self, config):self.config = config# ✅ 改成 qwen-vl-max-latest 的调用方式self.client = OpenAI(api_key=os.environ['DASHSCOPE_API_KEY'],base_url="https://dashscope.aliyuncs.com/compatible-mode/v1")self.base_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), './vlm_query')
http://www.dtcms.com/a/412171.html

相关文章:

  • 金鹏建设集团网站团员建设网站
  • 兰州新区建设局网站免费网络推广网址
  • h5网站系统wordpress导入数据库
  • postman 自动设置token
  • 杭州建平台网站公司网站建设教程asp
  • 【读书笔记】架构整洁之道 P5-2 软件架构
  • 网站搭建十大品牌公司1688一键铺货到拼多多
  • ai做网站ppt万能模板免费下载
  • 不同地区(语言)windows系统的字符串乱码问题
  • 英文外贸商城网站设计wordpress网站怎么加速
  • 软考-系统架构设计师 关系数据库详细讲解
  • 国外网站购物西安到北京火车票查询
  • 视频广告网站h5 技术做健康类网站
  • Java基础-面向对象复习知识3
  • [Windows] VarCalc v0.0.1
  • 网站开发培训北京有用建站宝盒做网站的吗
  • 亚马逊网站青岛鑫隆建设集团网站
  • 南宁最高端网站建设局域网内部网站建设app下载
  • 电机东莞网站建设建立网站时首先考虑的问题
  • 有没有什么网站做泰国的东西免费国内linux服务器
  • 销售网站制作电话甘肃交通建设监理公司网站
  • sqlite是什么
  • React学习第二天——表单控件
  • wordpress多站点详细设置(图解)杭州网络科技公司排名
  • 网站建设公司ejiew网站建设的公司哪家好
  • 免费前端模板网站公司加盟
  • ResNeXt-50--分组卷积--J6
  • 【开题答辩全过程】以 “勤工有道”微信小程序为例,包含答辩的问题和答案
  • 淄博网站建设费用摄影网站开发综述
  • 个人模板网站wordpress主题免费吗