haotongl
commited on
Commit
·
cf80b37
1
Parent(s):
37cca23
inital version
Browse files
README.md
CHANGED
@@ -1,56 +1,13 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
git clone https://github.com/DepthAnything/PromptDA.git
|
15 |
-
cd PromptDA
|
16 |
-
pip install -r requirements.txt
|
17 |
-
pip install -e .
|
18 |
-
```
|
19 |
-
|
20 |
-
## 2. Usage
|
21 |
-
```python
|
22 |
-
from promptda.promptda import PromptDA
|
23 |
-
from promptda.utils.io_wrapper import load_image, load_depth, save_depth
|
24 |
-
|
25 |
-
image_path = "assets/example_images/image.jpg"
|
26 |
-
prompt_depth_path = "assets/example_images/arkit_depth.png"
|
27 |
-
image = load_image(image_path)
|
28 |
-
# 192x256, ARKit LiDAR depth in meters
|
29 |
-
prompt_depth = load_depth(prompt_depth_path)
|
30 |
-
|
31 |
-
model = PromptDA().to("cuda").eval()
|
32 |
-
depth = model.predict(image, prompt_depth)
|
33 |
-
|
34 |
-
save_depth(depth, prompt_depth=prompt_depth, image=image)
|
35 |
-
```
|
36 |
-
|
37 |
-
## 3. Examples
|
38 |
-
|
39 |
-
### 3.1 Testing with Your Own iPhone Capture
|
40 |
-
|
41 |
-
### 3.2 Testing with vehicle LiDAR
|
42 |
-
|
43 |
-
|
44 |
-
## Citation
|
45 |
-
|
46 |
-
If you find this project useful, please consider citing:
|
47 |
-
|
48 |
-
```bibtex
|
49 |
-
@article{lin2024promptda,
|
50 |
-
title={Prompting Depth Anything for 4K Resolution Accurate Metric Depth Estimation},
|
51 |
-
author={Lin, Haotong and Peng, Sida and Chen, Jingxiao and Peng, Songyou and Sun, Jiaming and Liu, Minghuan and Bao, Hujun and Feng, Jiashi and Zhou, Xiaowei and Kang, Bingyi},
|
52 |
-
journal={arXiv},
|
53 |
-
year={2024}
|
54 |
-
}
|
55 |
-
```
|
56 |
-
|
|
|
1 |
+
---
|
2 |
+
title: Promptda
|
3 |
+
emoji: 📉
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: purple
|
6 |
+
sdk: gradio
|
7 |
+
sdk_version: 4.44.1
|
8 |
+
app_file: app.py
|
9 |
+
pinned: false
|
10 |
+
license: apache-2.0
|
11 |
+
---
|
12 |
+
|
13 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|