|
Download examples/user_code/README.md from JusJ7/openpose: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/JusJ7/openpose/resolve/main/examples/user_code/README.md
- Command line
-
hf download hf://JusJ7/openpose/examples/user_code/README.md
-
curl -L -o README.md https://huggingface.co/JusJ7/openpose/resolve/main/examples/user_code/README.md
1.14 kB
Adding and Testing Custom Code
Purpose
You can quickly add your custom code into this folder so that quick prototypes can be easily tested without having to create a whole new project just for it.
How-to
- Install/compile OpenPose as usual.
- Add your custom cpp / hpp files in this folder. Hint: You might want to start by copying the OpenPoseDemo example or any of the examples/tutorial_api_cpp/ examples.
- Add the name of your custom cpp / hpp files at the top of the examples/user_code/CMakeLists.txt file.
- Re-run CMake (
ConfigureandGenerate). - Then, you can simply modify their content.
- You can know compile OpenPose after each change in your files:
- Ubuntu:
cd build/ make -j`nproc`- Mac:
cd build/ make -j`sysctl -n hw.logicalcpu`- Windows: Compile from Visual Studio (F5, F7, green play button, etc.).
- Run step 4 every time that you make changes into your code.
Running your Custom Code
Run:
./build/examples/user_code/{your_custom_file_name}