-
Notifications
You must be signed in to change notification settings - Fork 5
Upgrade to IsaacSim 4.5 and IsaacLab 2.0.2 #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
1f00b9e
Upgrade to IsaacSim 4.5 and IsaacLab 2.0.2
mingxin-zheng 630ef3a
format fix
mingxin-zheng bf9572d
Update workflows/robotic_ultrasound/scripts/simulation/environments/s…
KumoLiu 30c6c51
update by following migration guide
mingxin-zheng ddd3208
fix
mingxin-zheng 8f46b55
Merge branch 'main' into mz/us_sim45
mingxin-zheng 78bae81
Merge branch 'main' into mz/us_sim45
mingxin-zheng 173dc65
Merge branch 'main' into mz/us_sim45
mingxin-zheng 720a851
rm duplicated path
mingxin-zheng 8364f76
minor fixes
mingxin-zheng 812f502
fix
mingxin-zheng 3bc90f3
minor fixes
mingxin-zheng ad0b0a9
fix
mingxin-zheng 9cd9440
timing
mingxin-zheng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -209,6 +209,7 @@ wandb/ | |
|
|
||
| # Third party | ||
| third_party/ | ||
| third-party/ | ||
|
|
||
| # third-party files | ||
| **/clarius_cast/include | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,10 +34,10 @@ if ! nvidia-smi &> /dev/null; then | |
| exit 1 | ||
| fi | ||
|
|
||
| # Check if the third_party directory exists, if yes, then exit | ||
| if [ -d "$PROJECT_ROOT/third_party" ]; then | ||
| echo "Error: third_party directory already exists" | ||
| echo "Please remove the third_party directory before running this script" | ||
| # Check if the third-party directory exists, if yes, then exit | ||
| if [ -d "$PROJECT_ROOT/third-party" ]; then | ||
| echo "Error: third-party directory already exists" | ||
| echo "Please remove the third-party directory before running this script" | ||
| exit 1 | ||
| fi | ||
|
|
||
|
|
@@ -52,21 +52,20 @@ fi | |
|
|
||
| # ---- Install IsaacSim and necessary dependencies ---- | ||
| echo "Installing IsaacSim..." | ||
| pip install isaacsim==4.2.0.2 isaacsim-extscache-physics==4.2.0.2 \ | ||
| isaacsim-extscache-kit==4.2.0.2 isaacsim-extscache-kit-sdk==4.2.0.2 \ | ||
| pip install 'isaacsim[all,extscache]==4.5.0' \ | ||
| rti.connext==7.3.0 pyrealsense2==2.55.1.6486 toml==0.10.2 dearpygui==2.0.0 \ | ||
| git+ssh://[email protected]/isaac-for-healthcare/[email protected] \ | ||
| git+ssh://[email protected]/isaac-for-healthcare/i4h-asset-catalog.git@mz/isaacsim45 \ | ||
| setuptools==75.8.0 pydantic==2.10.6 \ | ||
| --extra-index-url https://pypi.nvidia.com | ||
|
|
||
|
|
||
| # ---- Install IsaacLab ---- | ||
| echo "Installing IsaacLab..." | ||
| # CLONING REPOSITORIES INTO PROJECT_ROOT/third_party | ||
| echo "Cloning repositories into $PROJECT_ROOT/third_party..." | ||
| mkdir $PROJECT_ROOT/third_party | ||
| git clone -b v1.4.1 [email protected]:isaac-sim/IsaacLab.git $PROJECT_ROOT/third_party/IsaacLab | ||
| pushd $PROJECT_ROOT/third_party/IsaacLab | ||
| sed -i "s/rsl-rl/rsl-rl-lib/g" source/extensions/omni.isaac.lab_tasks/setup.py | ||
| # CLONING REPOSITORIES INTO PROJECT_ROOT/third-party | ||
| echo "Cloning repositories into $PROJECT_ROOT/third-party..." | ||
| mkdir $PROJECT_ROOT/third-party | ||
| git clone -b v2.0.2 [email protected]:isaac-sim/IsaacLab.git $PROJECT_ROOT/third-party/IsaacLab | ||
| pushd $PROJECT_ROOT/third-party/IsaacLab | ||
| yes Yes | ./isaaclab.sh --install | ||
| popd | ||
|
|
||
|
|
@@ -77,23 +76,24 @@ pushd $PROJECT_ROOT/workflows/robotic_ultrasound/scripts/simulation | |
| pip install -e exts/robotic_us_ext | ||
| popd | ||
|
|
||
| # exit 0 | ||
|
|
||
| # ---- Install OpenPI with IsaacSim 4.2 ---- | ||
| echo "Installing OpenPI..." | ||
| # Clone the openpi repository | ||
| git clone [email protected]:Physical-Intelligence/openpi.git $PROJECT_ROOT/third_party/openpi | ||
| pushd $PROJECT_ROOT/third_party/openpi | ||
| git clone [email protected]:Physical-Intelligence/openpi.git $PROJECT_ROOT/third-party/openpi | ||
| pushd $PROJECT_ROOT/third-party/openpi | ||
| git checkout 581e07d73af36d336cef1ec9d7172553b2332193 | ||
|
|
||
| # Update python version in pyproject.toml | ||
| pyproject_path="$PROJECT_ROOT/third_party/openpi/pyproject.toml" | ||
| pyproject_path="$PROJECT_ROOT/third-party/openpi/pyproject.toml" | ||
| sed -i.bak \ | ||
| -e 's/requires-python = ">=3.11"/requires-python = ">=3.10"/' \ | ||
| -e 's/"s3fs>=2024.9.0"/"s3fs==2024.9.0"/' \ | ||
| "$pyproject_path" | ||
|
|
||
| # Apply temporary workaround for openpi/src/openpi/shared/download.py | ||
| file_path="$PROJECT_ROOT/third_party/openpi/src/openpi/shared/download.py" | ||
| file_path="$PROJECT_ROOT/third-party/openpi/src/openpi/shared/download.py" | ||
|
|
||
| # Comment out specific import lines | ||
| sed -i.bak \ | ||
|
|
@@ -109,7 +109,7 @@ sed -i.bak -e 's/)[[:space:]]*-> s3_transfer\.TransferManager[[:space:]]*:/):/' | |
| sed -i.bak -e 's/datetime\.UTC/datetime.timezone.utc/' "$file_path" | ||
|
|
||
| # Modify the type hints in training/utils.py to use Any instead of optax types | ||
| utils_path="$PROJECT_ROOT/third_party/openpi/src/openpi/training/utils.py" | ||
| utils_path="$PROJECT_ROOT/third-party/openpi/src/openpi/training/utils.py" | ||
| sed -i.bak \ | ||
| -e 's/opt_state: optax\.OptState/opt_state: Any/' \ | ||
| "$utils_path" | ||
|
|
@@ -120,19 +120,19 @@ rm "$file_path.bak" | |
| rm "$utils_path.bak" | ||
|
|
||
| # Add training script to openpi module | ||
| if [ ! -f $PROJECT_ROOT/third_party/openpi/src/openpi/train.py ]; then | ||
| cp $PROJECT_ROOT/third_party/openpi/scripts/train.py $PROJECT_ROOT/third_party/openpi/src/openpi/train.py | ||
| if [ ! -f $PROJECT_ROOT/third-party/openpi/src/openpi/train.py ]; then | ||
| cp $PROJECT_ROOT/third-party/openpi/scripts/train.py $PROJECT_ROOT/third-party/openpi/src/openpi/train.py | ||
| fi | ||
|
|
||
| # Add norm stats generator script to openpi module | ||
| if [ ! -f $PROJECT_ROOT/third_party/openpi/src/openpi/compute_norm_stats.py ]; then | ||
| cp $PROJECT_ROOT/third_party/openpi/scripts/compute_norm_stats.py $PROJECT_ROOT/third_party/openpi/src/openpi/compute_norm_stats.py | ||
| if [ ! -f $PROJECT_ROOT/third-party/openpi/src/openpi/compute_norm_stats.py ]; then | ||
| cp $PROJECT_ROOT/third-party/openpi/scripts/compute_norm_stats.py $PROJECT_ROOT/third-party/openpi/src/openpi/compute_norm_stats.py | ||
| fi | ||
|
|
||
| # Install the dependencies | ||
| pip install git+https://github.com/huggingface/lerobot@6674e368249472c91382eb54bb8501c94c7f0c56 | ||
| pip install -e $PROJECT_ROOT/third_party/openpi/packages/openpi-client/ | ||
| pip install -e $PROJECT_ROOT/third_party/openpi/ | ||
| pip install -e $PROJECT_ROOT/third-party/openpi/packages/openpi-client/ | ||
| pip install -e $PROJECT_ROOT/third-party/openpi/ | ||
|
|
||
| # Revert the "import changes of "$file_path after installation to prevent errors | ||
| sed -i \ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.