Spaces:
Runtime error
Runtime error
Download PyPatchMatch/examples/cpp_example_run.sh from lnyan/stablediffusion-infinity: direct link, hf CLI and curl.
- Browser
- Download file 490 Bytes
-
https://huggingface.co/spaces/lnyan/stablediffusion-infinity/resolve/refs%2Fpr%2F6/PyPatchMatch/examples/cpp_example_run.sh
- Command line
-
hf download hf://spaces/lnyan/stablediffusion-infinity@refs/pr/6/PyPatchMatch/examples/cpp_example_run.sh
-
curl -L -o cpp_example_run.sh https://huggingface.co/spaces/lnyan/stablediffusion-infinity/resolve/refs%2Fpr%2F6/PyPatchMatch/examples/cpp_example_run.sh
490 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 | |