xbpeng / DeepMimic

Motion imitation with deep reinforcement learning.
https://xbpeng.github.io/projects/DeepMimic/index.html
MIT License
2.27k stars 485 forks source link

Unable to display the screen correctly #189

Closed PeterWangyi closed 1 year ago

PeterWangyi commented 1 year ago

My local system is windows10, the development system is ubuntu22.04 in wsl2, I am using bullet2.88, freeglut3.0.0, glew2.1.0, swig4.0.0, the configuration is the same as the deepmimic paper environment, I use x11 in wsl2 Forwarding, windows uses VcXsrv to monitor. When I run the visualization program in the thesis, I can't display the graphics content correctly, but my code output is fine. After that, I ran the AppBasicExampleGui in the bullet example, and there was only a 10% chance that it could be displayed normally (tested 100 times). My opengl version is 3.1.6. I wonder if anyone encountered the same situation? Help me, I'm about to collapse!

Below is my output:

cd /home/peter/physic_playground ; /usr/bin/env /usr/bin/python3 /home/peter/.vscode-server/extensions/ms-python.python-2023.8.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 36605 -- /home/peter/physic_playground/run/local_run_test_env_gui.py 2023-06-27 22:07:13.058228: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-06-27 22:07:14.102008: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT WARNING:tensorflow:From /home/peter/.local/lib/python3.10/site-packages/tensorflow/python/compat/v2_compat.py:107: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version. Instructions for updating: non-resource variables are not supported in the long term /home/peter/.local/lib/python3.10/site-packages/newton/model/network_blocks.py:54: UserWarning: tf.layers.flatten is deprecated and will be removed in a future version. Please use tf.keras.layers.Flatten instead. h = tf.layers.flatten(X) 2023-06-27 22:07:16.678289: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:353] MLIR V1 optimization pass is not enabled Renderer: D3D12 (Intel(R) UHD Graphics 630) OpenGL version supported 4.1 (Compatibility Profile) Mesa 22.2.5-0ubuntu0.1~22.04.3 Compiling shader: data/shaders/Mesh_VS.glsl Compiling shader: data/shaders/VertColor_PS.glsl Compiling shader: data/shaders/FullScreenQuad_VS.glsl Compiling shader: data/shaders/DownSample_PS.glsl Compiling shader: data/shaders/Mesh_VS.glsl Compiling shader: data/shaders/DownSample_PS.glsl Loaded 1.283 seconds of motion data from data/motions/humanoid3d_spinkick.txt.

Agent Registry Num Agents: 1 Agent 0: ct_pd

Compiling shader: data/shaders/Mesh_VS.glsl Compiling shader: data/shaders/Depth_PS.glsl Compiling shader: data/shaders/Mesh_VS.glsl Compiling shader: data/shaders/Lighting_Lambert_PS.glsl Loaded scene: Imitate 0.998900590229061 0.8293166566209201 0.6034301836506686 0.4551450902410313 0.38282293090748165

output

PeterWangyi commented 1 year ago

Ok, I've solved this problem. It looks like a problem with intelGraphics - windows DCH drivers. The solution can be to upgrade the driver, or add: GALLIUM_DRIVER=llvmpipe to the command line.

refer to: https://github.com/microsoft/wslg/issues/654 https://github.com/microsoft/wslg/issues/334/