In this computer vision tutorial, we explain how to install and run locally the Apple’s new computer vision model called SHARP on a Windows computer. SHARP is a model that can generate photorealistic 3D views only on the basis of a single image. Sharp obtains a 3D Guassian representation of a depicted scene. This is done in a less than a second.
Installation Procedure
First, install Nvidia CUDA Compilers using the procedure given here. Then, install Git using this website. Then, open the terminal and do the following
mkdir modelSharp
cd model
Then, clone the repository
git clone https://github.com/apple/ml-sharp
Then, navigate
cd ml-sharp
Create and activate a Python virtual environment:
python -m venv env1
env1\Scripts\activate.bat
Install the dependencies:
pip install -r requirements.txt
Create input and output folders and store the input images in the input folder
mkdir input
mkdir output
As a test you can use the image given here
To run the model
sharp predict -i ./input -o ./output --render
To view the files:
You can use the following website
https://enter-tainer.github.io/browser-sharp
