Skip to content

Commit

Permalink
Merge pull request #12 from shubhMaheshwari/main
Browse files Browse the repository at this point in the history
Updated README added more fixes for polyscope rendering on north server
  • Loading branch information
shubhMaheshwari authored Oct 23, 2024
2 parents cba3289 + 4449787 commit c6ff8a3
Showing 1 changed file with 33 additions and 42 deletions.
75 changes: 33 additions & 42 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,65 +116,56 @@ python src/opencap_reconstruction_render.py <subject-path> <mot-path> <save-pa
## 1. Visualization
<details>
<summary>Polyscope installation details </summary>
- Linux
### Rendering
Renders a video of the skeleton video using polyscope
```
python3 python src/opencap_reconstruction_render.py # For complete dataset
```
- Windows
Or
```
python3 python src/opencap_reconstruction_render.py <subject-path> <mot-path> <save-path> # Specific trc file
```
- Remote Server / North Servr / Linux Containers
<details>
<summary> Running on a Remote Server / North Servr / Linux Containers ? </summary>
Polyscope has a lot of trouble installing on the remote server. But by installing the right packages we can make it work.
3. Fix for error:
```
libGL error: MESA-LOADER: failed to open swrast: /home/ubuntu/.conda/envs/T2M-GPT/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
GLFW emitted error: GLX: Failed to create context: GLXBadFBConfig
```
```
rm /home/ubuntu/.conda/envs/T2M-GPT/bin/../lib/libstdc++.so.6
ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /home/ubuntu/.conda/envs/T2M-GPT/bin/../lib/libstdc++.so.6
```
4. Fix for `GLFW emitted error: The GLFW library is not initialized`
```
```
Polyscope has a lot of trouble installing on the remote server. Below are a few steps that can be taken for fix common errors.
4. Fix for error:
```
DISPLAY not found
```
1. Use `ssh -X` to login
2. Set `export DISPLAY=:99.0`
3. Fix for error:
</details>
```
libGL error: MESA-LOADER: failed to open swrast: /home/ubuntu/.conda/envs/T2M-GPT/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
GLFW emitted error: GLX: Failed to create context: GLXBadFBConfig
```
```
rm /home/ubuntu/.conda/envs/T2M-GPT/bin/../lib/libstdc++.so.6
ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /home/ubuntu/.conda/envs/T2M-GPT/bin/../lib/libstdc++.so.6
```
### Rendering
Renders a video of the skeleton video using polyscope
```
python3 python src/opencap_reconstruction_render.py # For complete dataset
```
Or
```
python3 python src/opencap_reconstruction_render.py <subject-path> <mot-path> <save-path> # Specific trc file
```
4. Fix for `GLFW emitted error: The GLFW library is not initialized`
```
pip install glfw
```
5. Fix for error `DISPLAY not found`:
```
export DISPLAY=:99.0
```
<details>
<summary> Running on a remote server ? </summary>
6. Segfault:
```
export DISPLAY=:99.0
```
- Use `ssh -X` to login
- Set `export DISPLAY=:99.0`
</details>
Expand Down

0 comments on commit c6ff8a3

Please sign in to comment.