Spaces:
Build error
Build error
Merge branch 'main' of https://huggingface.co/spaces/thomagram/StyleNeRF
Browse files
README.md
CHANGED
|
@@ -1,75 +1,30 @@
|
|
| 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 |
-
python run_train.py outdir=${OUTDIR} data=${DATASET} spec=paper512 model=stylenerf_ffhq
|
| 32 |
-
```
|
| 33 |
-
It will automatically detect all usable GPUs.
|
| 34 |
-
|
| 35 |
-
Please check configuration files at ```conf/model``` and ```conf/spec```. You can always add your own model config. More details on how to use hydra configuration please follow https://hydra.cc/docs/intro/.
|
| 36 |
-
|
| 37 |
-
## Render the pretrained model
|
| 38 |
-
```bash
|
| 39 |
-
python generate.py --outdir=${OUTDIR} --trunc=0.7 --seeds=${SEEDS} --network=${CHECKPOINT_PATH} --render-program="rotation_camera"
|
| 40 |
-
```
|
| 41 |
-
It supports different rotation trajectories for rendering new videos.
|
| 42 |
-
|
| 43 |
-
## Run a demo page
|
| 44 |
-
```bash
|
| 45 |
-
python web_demo.py 21111
|
| 46 |
-
```
|
| 47 |
-
It will in default run a Gradio-powered demo on https://localhost:21111
|
| 48 |
-

|
| 49 |
-
## Run a GUI visualizer
|
| 50 |
-
```bash
|
| 51 |
-
python visualizer.py
|
| 52 |
-
```
|
| 53 |
-
An interative application will show up for users to play with.
|
| 54 |
-

|
| 55 |
-
## Citation
|
| 56 |
-
|
| 57 |
-
```
|
| 58 |
-
@inproceedings{
|
| 59 |
-
gu2022stylenerf,
|
| 60 |
-
title={StyleNeRF: A Style-based 3D Aware Generator for High-resolution Image Synthesis},
|
| 61 |
-
author={Jiatao Gu and Lingjie Liu and Peng Wang and Christian Theobalt},
|
| 62 |
-
booktitle={International Conference on Learning Representations},
|
| 63 |
-
year={2022},
|
| 64 |
-
url={https://openreview.net/forum?id=iUuzzTMUw9K}
|
| 65 |
-
}
|
| 66 |
-
```
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
## License
|
| 70 |
-
|
| 71 |
-
Copyright © Facebook, Inc. All Rights Reserved.
|
| 72 |
-
|
| 73 |
-
The majority of StyleNeRF is licensed under [CC-BY-NC](https://creativecommons.org/licenses/by-nc/4.0/), however, portions of this project are available under a separate license terms: all codes used or modified from [stylegan2-ada-pytorch](https://github.com/NVlabs/stylegan2-ada-pytorch) is under the [Nvidia Source Code License](https://nvlabs.github.io/stylegan2-ada-pytorch/license.html).
|
| 74 |
-
|
| 75 |
-
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: StyleNeRF
|
| 3 |
+
emoji: 🌍
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: blue
|
| 6 |
+
sdk: gradio
|
| 7 |
+
app_file: app.py
|
| 8 |
+
pinned: false
|
| 9 |
+
---
|
| 10 |
+
# Configuration
|
| 11 |
+
`title`: _string_
|
| 12 |
+
Display title for the Space
|
| 13 |
+
`emoji`: _string_
|
| 14 |
+
Space emoji (emoji-only character allowed)
|
| 15 |
+
`colorFrom`: _string_
|
| 16 |
+
Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray)
|
| 17 |
+
`colorTo`: _string_
|
| 18 |
+
Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray)
|
| 19 |
+
`sdk`: _string_
|
| 20 |
+
Can be either `gradio` or `streamlit`
|
| 21 |
+
`sdk_version` : _string_
|
| 22 |
+
Only applicable for `streamlit` SDK.
|
| 23 |
+
See [doc](https://hf.co/docs/hub/spaces) for more info on supported versions.
|
| 24 |
+
|
| 25 |
+
`app_file`: _string_
|
| 26 |
+
Path to your main application file (which contains either `gradio` or `streamlit` Python code).
|
| 27 |
+
Path is relative to the root of the repository.
|
| 28 |
+
|
| 29 |
+
`pinned`: _boolean_
|
| 30 |
+
Whether the Space stays on top of your list.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|