Spaces:
Runtime error
Runtime error
Download PyPatchMatch/csrc/pyinterface.h from lnyan/stablediffusion-infinity: direct link, hf CLI and curl.
- Browser
- Download file 944 Bytes
-
https://huggingface.co/spaces/lnyan/stablediffusion-infinity/resolve/refs%2Fpr%2F6/PyPatchMatch/csrc/pyinterface.h
- Command line
-
hf download hf://spaces/lnyan/stablediffusion-infinity@refs/pr/6/PyPatchMatch/csrc/pyinterface.h
-
curl -L -o pyinterface.h https://huggingface.co/spaces/lnyan/stablediffusion-infinity/resolve/refs%2Fpr%2F6/PyPatchMatch/csrc/pyinterface.h
944 Bytes
| extern "C" { | |
| struct PM_shape_t { | |
| int width, height, channels; | |
| }; | |
| enum PM_dtype_e { | |
| PM_UINT8, | |
| PM_INT8, | |
| PM_UINT16, | |
| PM_INT16, | |
| PM_INT32, | |
| PM_FLOAT32, | |
| PM_FLOAT64, | |
| }; | |
| struct PM_mat_t { | |
| void *data_ptr; | |
| PM_shape_t shape; | |
| int dtype; | |
| }; | |
| void PM_set_random_seed(unsigned int seed); | |
| void PM_set_verbose(int value); | |
| void PM_free_pymat(PM_mat_t pymat); | |
| PM_mat_t PM_inpaint(PM_mat_t image, PM_mat_t mask, int patch_size); | |
| PM_mat_t PM_inpaint_regularity(PM_mat_t image, PM_mat_t mask, PM_mat_t ijmap, int patch_size, float guide_weight); | |
| PM_mat_t PM_inpaint2(PM_mat_t image, PM_mat_t mask, PM_mat_t global_mask, int patch_size); | |
| PM_mat_t PM_inpaint2_regularity(PM_mat_t image, PM_mat_t mask, PM_mat_t global_mask, PM_mat_t ijmap, int patch_size, float guide_weight); | |
| } /* extern "C" */ | |