File size: 923 Bytes
5b3c62d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0d9ae27
5b3c62d
cca0a16
 
 
 
 
0d9ae27
 
 
 
 
 
 
 
 
 
5b3c62d
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
title: Campose API
emoji: 📷
colorFrom: green
colorTo: yellow
sdk: docker
pinned: true
app_port: 7860
---

## Presentation

### What is this project?

WARNING - This project is not finished!

Campose API is a REST API to generate camera pose data from a set of images or a video.

## Manual testing (using CURL)

Converting a video to images:

```
ffmpeg -i in.mp4 %04d.jpg
```
Generating poses from a local video:

```bash:
curl -X POST -H "Content-Type: multipart/form-data" -F "[email protected]" http://localhost:7860/
```

Generating poses from a remote video:
```bash
curl -X POST -H "Content-Type: application/json" -d '{"assetUrl":"http://example.com/video.mp4"}' http://localhost:7860/
```

## Running on your machine

### Prerequisites

You need a machine with CUDA, a GPU etc

### Environment variables

- `STORAGE_PATH`: on HF use `/data`, on a local you can use `.sandbox/`

### Deployment to Hugging Face