Spaces:
Runtime error
Runtime error
update readme
Browse files
README.md
CHANGED
|
@@ -1,122 +1,12 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
> </p>
|
| 14 |
-
|
| 15 |
-
> <p align="center" float="left">
|
| 16 |
-
> <img src="docs/figures/demo/case2.sat.gif" alt="drawing" width="19%">
|
| 17 |
-
> <img src="docs/figures/demo-density/case2.gif" alt="drawing" width="38%">
|
| 18 |
-
> <img src="docs/figures/demo/case2.render.gif" alt="drawing" width="38%">
|
| 19 |
-
> </p>
|
| 20 |
-
|
| 21 |
-
> <p align="center" float="left">
|
| 22 |
-
> <img src="docs/figures/demo/case3.sat.gif" alt="drawing" width="19%">
|
| 23 |
-
> <img src="docs/figures/demo-density/case3.gif" alt="drawing" width="38%">
|
| 24 |
-
> <img src="docs/figures/demo/case3.render.gif" alt="drawing" width="38%">
|
| 25 |
-
> </p>
|
| 26 |
-
|
| 27 |
-
> <p align="center" float="left">
|
| 28 |
-
> <img src="docs/figures/demo/case4.sat.gif" alt="drawing" width="19%">
|
| 29 |
-
> <img src="docs/figures/demo-density/case4.gif" alt="drawing" width="38%">
|
| 30 |
-
> <img src="docs/figures/demo/case4.render.gif" alt="drawing" width="38%">
|
| 31 |
-
> </p>
|
| 32 |
-
|
| 33 |
-
## Checkpoints Downloading
|
| 34 |
-
> Two checkpoints for CVACT and CVUSA can be found from [thisurl](https://github.com/sat2density/checkpoints/releases). You can also run the following command to download them.
|
| 35 |
-
```
|
| 36 |
-
bash scripts/download_weights.sh
|
| 37 |
-
```
|
| 38 |
-
|
| 39 |
-
## QuickStart Demo
|
| 40 |
-
### Video Synthesis
|
| 41 |
-
#### Example Usage
|
| 42 |
-
```
|
| 43 |
-
python test.py --yaml=sat2density_cvact \
|
| 44 |
-
--test_ckpt_path=2u87bj8w \
|
| 45 |
-
--task=test_vid \
|
| 46 |
-
--demo_img=demo_img/case1/satview-input.png \
|
| 47 |
-
--sty_img=demo_img/case1/groundview.image.png \
|
| 48 |
-
--save_dir=results/case1
|
| 49 |
-
```
|
| 50 |
-
####
|
| 51 |
-
|
| 52 |
-
### Illumination Interpolation
|
| 53 |
-
<!-- ```
|
| 54 |
-
bash inference/quick_demo_interpolation.sh
|
| 55 |
-
``` -->
|
| 56 |
-
```
|
| 57 |
-
python test.py --task=test_interpolation \
|
| 58 |
-
--yaml=sat2density_cvact \
|
| 59 |
-
--test_ckpt_path=2u87bj8w \
|
| 60 |
-
--sty_img1=demo_img/case9/groundview.image.png \
|
| 61 |
-
--sty_img2=demo_img/case7/groundview.image.png \
|
| 62 |
-
--demo_img=demo_img/case3/satview-input.png \
|
| 63 |
-
--save_dir=results/case2
|
| 64 |
-
```
|
| 65 |
-
|
| 66 |
-
## Train & Inference
|
| 67 |
-
- *We trained our model using 1 V100 32GB GPU. The training phase will take about 20 hours.*
|
| 68 |
-
- *For data preparation, please check out [data.md](dataset/INSTALL.md).*
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
### Inference
|
| 74 |
-
|
| 75 |
-
To test Center Ground-View Synthesis setting
|
| 76 |
-
If you want save results, please add --task=vis_test
|
| 77 |
-
```bash
|
| 78 |
-
# CVACT
|
| 79 |
-
python offline_train_test.py --yaml=sat2density_cvact --test_ckpt_path=2u87bj8w
|
| 80 |
-
# CVUSA
|
| 81 |
-
python offline_train_test.py --yaml=sat2density_cvusa --test_ckpt_path=2cqv8uh4
|
| 82 |
-
```
|
| 83 |
-
|
| 84 |
-
To test inference with different illumination
|
| 85 |
-
```bash
|
| 86 |
-
# CVACT
|
| 87 |
-
bash inference/single_style_test_cvact.sh
|
| 88 |
-
# CVUSA
|
| 89 |
-
bash inference/single_style_test_cvusa.sh
|
| 90 |
-
```
|
| 91 |
-
|
| 92 |
-
To test synthesis ground videos
|
| 93 |
-
```bash
|
| 94 |
-
bash inference/synthesis_video.sh
|
| 95 |
-
```
|
| 96 |
-
|
| 97 |
-
## Training
|
| 98 |
-
|
| 99 |
-
### Training command
|
| 100 |
-
|
| 101 |
-
```bash
|
| 102 |
-
# CVACT
|
| 103 |
-
CUDA_VISIBLE_DEVICES=X python train.py --yaml=sat2density_cvact
|
| 104 |
-
# CVUSA
|
| 105 |
-
CUDA_VISIBLE_DEVICES=X python train.py --yaml=sat2density_cvusa
|
| 106 |
-
```
|
| 107 |
-
|
| 108 |
-
## Citation
|
| 109 |
-
If you use this code for your research, please cite
|
| 110 |
-
|
| 111 |
-
```
|
| 112 |
-
@inproceedings{qian2021sat2density,
|
| 113 |
-
title={Sat2Density: Faithful Density Learning from Satellite-Ground Image Pairs},
|
| 114 |
-
author={Qian, Ming and Xiong, Jincheng and Xia, Gui-Song and Xue, Nan},
|
| 115 |
-
booktitle={ICCV},
|
| 116 |
-
year={2023}
|
| 117 |
-
}
|
| 118 |
-
```
|
| 119 |
-
|
| 120 |
-
## License
|
| 121 |
-
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
|
| 122 |
-
For commercial use, please contact [mingqian@whu.edu.cn].
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: sat3density
|
| 3 |
+
emoji: 🐠
|
| 4 |
+
colorFrom: yellow
|
| 5 |
+
colorTo: purple
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 3.36.1
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
license: mit
|
| 11 |
+
---
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|