DeepMimic icon indicating copy to clipboard operation
DeepMimic copied to clipboard

When I debug the DeepMimicCore project, somthing wrong happen

Open yingfengwu opened this issue 3 years ago • 9 comments

I can get the DeepMimicCore.py file and run the DeepMimic project successfully. However, I can debug the DeepMimic project while can not debug DeepMimicCore project. Anyone know the solution? Thank a lot in advance.

image

image

yingfengwu avatar Mar 15 '21 06:03 yingfengwu

DeepMimicCore is a python module, it's not a application, so you won't be able to run it like a usual app. But if you want to debug the c++ code by building the "Debug" configuration. In visual studio, you can select the "debug" option under the configuration manager. This will build a c++ executable that you can attach a debugger.

xbpeng avatar Mar 15 '21 16:03 xbpeng

DeepMimicCore is a python module, it's not a application, so you won't be able to run it like a usual app. But if you want to debug the c++ code by building the "Debug" configuration. In visual studio, you can select the "debug" option under the configuration manager. This will build a c++ executable that you can attach a debugger.

@xbpeng Thanks for your patience sincerely and it is very clear. But after I finish the "Debug" configuration and start debugging, I get some other errors. Should I pass some arguments?

image image

yingfengwu avatar Mar 16 '21 09:03 yingfengwu

After I have filled out the command arguments, it also dose not work.

image

yingfengwu avatar Mar 16 '21 09:03 yingfengwu

The command line arguments are not the same as the contents in the arg files. The arguments are the same as the ones used to run the python scripts. Try: --arg_file args/run_humanoid3d_spinkick_args.txt

xbpeng avatar Mar 16 '21 17:03 xbpeng

The command line arguments are not the same as the contents in the arg files. The arguments are the same as the ones used to run the python scripts. Try: --arg_file args/run_humanoid3d_spinkick_args.txt

@xbpeng I have tried it. It still does not work. image

I attempt to click the retry button and it shows that DeepMimicCore.exe has stopped working. What is something wrong in my software configuration or environment? image

yingfengwu avatar Mar 17 '21 00:03 yingfengwu

there's an error in the console, what does it say?

xbpeng avatar Mar 17 '21 01:03 xbpeng

It works. The solution is to copy the two directories into DeepMimicCore directory. image

But the motion isn't done fluently, like dropped frame. And it can not finish the spinkick. image

yingfengwu avatar Mar 17 '21 01:03 yingfengwu

The c++ code only runs the physics simulation, it doesn't run the policy. So the character will just fall over. That is expected behavior. All of the learning code is on the python side.

xbpeng avatar Mar 17 '21 01:03 xbpeng

Fine, I get it. Thanks for your patient replies again.

yingfengwu avatar Mar 17 '21 01:03 yingfengwu