Spaces:
Runtime error
Runtime error
Download stablediffusion-infinity/PyPatchMatch/examples/cpp_example_run.sh from huggingface-projects/stable-diffusion-multiplayer: direct link, hf CLI and curl.
- Browser
- Download file 472 Bytes
-
https://huggingface.co/spaces/huggingface-projects/stable-diffusion-multiplayer/resolve/b4efffaade9a4e146f673c1611e5f71c89860b4e/stablediffusion-infinity/PyPatchMatch/examples/cpp_example_run.sh
- Command line
-
hf download hf://spaces/huggingface-projects/stable-diffusion-multiplayer@b4efffaade9a4e146f673c1611e5f71c89860b4e/stablediffusion-infinity/PyPatchMatch/examples/cpp_example_run.sh
-
curl -L -o cpp_example_run.sh https://huggingface.co/spaces/huggingface-projects/stable-diffusion-multiplayer/resolve/b4efffaade9a4e146f673c1611e5f71c89860b4e/stablediffusion-infinity/PyPatchMatch/examples/cpp_example_run.sh
472 Bytes
| # | |
| # cpp_example_run.sh | |
| # Copyright (C) 2020 Jiayuan Mao <maojiayuan@gmail.com> | |
| # | |
| # Distributed under terms of the MIT license. | |
| # | |
| set -x | |
| CFLAGS="-std=c++14 -O2 $(pkg-config --cflags opencv)" | |
| LDFLAGS="$(pkg-config --libs opencv)" | |
| g++ $CFLAGS cpp_example.cpp -I../csrc/ -L../ -lpatchmatch $LDFLAGS -o cpp_example.exe | |
| export DYLD_LIBRARY_PATH=../:$DYLD_LIBRARY_PATH # For macOS | |
| export LD_LIBRARY_PATH=../:$LD_LIBRARY_PATH # For Linux | |
| time ./cpp_example.exe | |