Spaces:
Configuration error
Configuration error
Download custom_oneformer/modeling/pixel_decoder/ops/src/vision.cpp from JasonSmithSO/FooocusEnhanced: direct link, hf CLI and curl.
- Browser
- Download file 942 Bytes
-
https://huggingface.co/spaces/JasonSmithSO/FooocusEnhanced/resolve/main/custom_oneformer/modeling/pixel_decoder/ops/src/vision.cpp
- Command line
-
hf download hf://spaces/JasonSmithSO/FooocusEnhanced/custom_oneformer/modeling/pixel_decoder/ops/src/vision.cpp
-
curl -L -o vision.cpp https://huggingface.co/spaces/JasonSmithSO/FooocusEnhanced/resolve/main/custom_oneformer/modeling/pixel_decoder/ops/src/vision.cpp
942 Bytes
| /*! | |
| ************************************************************************************************** | |
| * Deformable DETR | |
| * Copyright (c) 2020 SenseTime. All Rights Reserved. | |
| * Licensed under the Apache License, Version 2.0 [see LICENSE for details] | |
| ************************************************************************************************** | |
| * Modified from https://github.com/chengdazhi/Deformable-Convolution-V2-PyTorch/tree/pytorch_1.0.0 | |
| ************************************************************************************************** | |
| */ | |
| /*! | |
| * Copyright (c) Facebook, Inc. and its affiliates. | |
| * Modified by Bowen Cheng from https://github.com/fundamentalvision/Deformable-DETR | |
| */ | |
| PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) { | |
| m.def("ms_deform_attn_forward", &ms_deform_attn_forward, "ms_deform_attn_forward"); | |
| m.def("ms_deform_attn_backward", &ms_deform_attn_backward, "ms_deform_attn_backward"); | |
| } | |