Spaces:
Runtime error
Runtime error
ShaoTengLiu
commited on
Commit
·
410933d
1
Parent(s):
80c6f7f
update
Browse files- README.md +2 -2
- inference.py +1 -0
- trainer.py +2 -2
README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: ⚡
|
| 4 |
colorFrom: red
|
| 5 |
colorTo: purple
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
license: mit
|
| 9 |
-
duplicated_from:
|
| 10 |
---
|
| 11 |
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Video-P2P UI
|
| 3 |
emoji: ⚡
|
| 4 |
colorFrom: red
|
| 5 |
colorTo: purple
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
license: mit
|
| 9 |
+
duplicated_from: Tune-A-Video-library/Tune-A-Video-Training-UI
|
| 10 |
---
|
| 11 |
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
inference.py
CHANGED
|
@@ -13,6 +13,7 @@ from diffusers.utils.import_utils import is_xformers_available
|
|
| 13 |
from einops import rearrange
|
| 14 |
from huggingface_hub import ModelCard
|
| 15 |
|
|
|
|
| 16 |
sys.path.append('Tune-A-Video')
|
| 17 |
|
| 18 |
from tuneavideo.models.unet import UNet3DConditionModel
|
|
|
|
| 13 |
from einops import rearrange
|
| 14 |
from huggingface_hub import ModelCard
|
| 15 |
|
| 16 |
+
sys.path.append('Video-P2P')
|
| 17 |
sys.path.append('Tune-A-Video')
|
| 18 |
|
| 19 |
from tuneavideo.models.unet import UNet3DConditionModel
|
trainer.py
CHANGED
|
@@ -137,8 +137,8 @@ class Trainer:
|
|
| 137 |
OmegaConf.save(config, f)
|
| 138 |
|
| 139 |
# command = f'accelerate launch Tune-A-Video/train_tuneavideo.py --config {config_path}'
|
| 140 |
-
command = f'accelerate launch Video-P2P/run_tuning.py --config {config_path}'
|
| 141 |
-
|
| 142 |
# command = f'accelerate launch Tune-A-Video-debug/train_tuneavideo.py --config {config_path}'
|
| 143 |
subprocess.run(shlex.split(command))
|
| 144 |
save_model_card(save_dir=output_dir,
|
|
|
|
| 137 |
OmegaConf.save(config, f)
|
| 138 |
|
| 139 |
# command = f'accelerate launch Tune-A-Video/train_tuneavideo.py --config {config_path}'
|
| 140 |
+
# command = f'accelerate launch Video-P2P/run_tuning.py --config {config_path}'
|
| 141 |
+
command = f'accelerate launch Video-P2P/train_tuneavideo.py --config {config_path}'
|
| 142 |
# command = f'accelerate launch Tune-A-Video-debug/train_tuneavideo.py --config {config_path}'
|
| 143 |
subprocess.run(shlex.split(command))
|
| 144 |
save_model_card(save_dir=output_dir,
|