<!-- # hard line break macro for HTML -->

<a id="model-zoo-apple-sharp"></a>

# Apple/SHARP

<a href="../../plugins/plugins_ecosystem/apple_sharp.html" target="_blank">
    <img src="https://img.shields.io/badge/Plugin-apple_\_sharp-orange" alt="From Plugin">
</a>

#### NOTE
This is a [remotely-sourced model](../remote.md#model-zoo-remote) from the
[apple_sharp](../../plugins/plugins_ecosystem/apple_sharp.html) plugin, maintained by the community.
It is not part of FiftyOne core and may have special installation requirements.
Please review the plugin documentation and license before use.

SHARP is an approach to photorealistic view synthesis from a single image. Given a single photograph, SHARP regresses the parameters of a 3D Gaussian representation of the depicted scene..

**Details**

- Model name: `Apple/SHARP`
- Model source: [https://huggingface.co/apple/Sharp](https://huggingface.co/apple/Sharp)
- Model author: Apple
- Model license: Apple Model License for Research
- Exposes embeddings? no
- Tags: `threed`

**Requirements**

- Packages: `sharp@git+https://github.com/apple/ml-sharp, torch, torchvision`
- CPU support
  - yes
- GPU support
  - yes

**Example usage**

```python
import fiftyone as fo
import fiftyone.zoo as foz

foz.register_zoo_model_source("https://github.com/harpreetsahota204/apple_sharp")

dataset = foz.load_zoo_dataset(
    "coco-2017",
    split="validation",
    dataset_name=fo.get_default_dataset_name(),
    max_samples=50,
    shuffle=True,
)

model = foz.load_zoo_model("Apple/SHARP")

dataset.apply_model(model, label_field="predictions")

session = fo.launch_app(dataset)
```
