Spaces:
Runtime error
Runtime error
mayuema
commited on
Commit
·
f428d8f
1
Parent(s):
65516a6
first release
Browse files
FollowYourPose/followyourpose/pipelines/pipeline_followyourpose.py
CHANGED
@@ -419,7 +419,7 @@ class FollowYourPosePipeline(DiffusionPipeline):
|
|
419 |
|
420 |
@torch.no_grad()
|
421 |
def get_skeleton(self,skeleton_path):
|
422 |
-
skeleton_start_end = list(range(0,
|
423 |
self_transform = transforms.Compose([transforms.Resize(512),
|
424 |
transforms_video.CenterCropVideo(512)])
|
425 |
|
|
|
419 |
|
420 |
@torch.no_grad()
|
421 |
def get_skeleton(self,skeleton_path):
|
422 |
+
skeleton_start_end = list(range(0, 96, 4))
|
423 |
self_transform = transforms.Compose([transforms.Resize(512),
|
424 |
transforms_video.CenterCropVideo(512)])
|
425 |
|
FollowYourPose/test_followyourpose.py
CHANGED
@@ -105,10 +105,6 @@ def test(
|
|
105 |
text_encoder.requires_grad_(False)
|
106 |
|
107 |
unet.requires_grad_(False)
|
108 |
-
# for name, module in unet.named_modules():
|
109 |
-
# if name.endswith(tuple(trainable_modules)):
|
110 |
-
# for params in module.parameters():
|
111 |
-
# params.requires_grad = True
|
112 |
|
113 |
if enable_xformers_memory_efficient_attention:
|
114 |
if is_xformers_available():
|
|
|
105 |
text_encoder.requires_grad_(False)
|
106 |
|
107 |
unet.requires_grad_(False)
|
|
|
|
|
|
|
|
|
108 |
|
109 |
if enable_xformers_memory_efficient_attention:
|
110 |
if is_xformers_available():
|
app.py
CHANGED
@@ -159,8 +159,7 @@ with gr.Blocks(css='style.css') as demo:
|
|
159 |
with gr.Row():
|
160 |
from example import style_example
|
161 |
examples = style_example
|
162 |
-
|
163 |
-
|
164 |
inputs = [
|
165 |
user_input_video,
|
166 |
target_prompt,
|
|
|
159 |
with gr.Row():
|
160 |
from example import style_example
|
161 |
examples = style_example
|
162 |
+
|
|
|
163 |
inputs = [
|
164 |
user_input_video,
|
165 |
target_prompt,
|
inference_followyourpose.py
CHANGED
@@ -18,11 +18,11 @@ class merge_config_then_run():
|
|
18 |
self.text_encoder = None
|
19 |
self.vae = None
|
20 |
self.unet = None
|
21 |
-
|
22 |
-
def download_model(
|
23 |
REPO_ID = 'YueMafighting/FollowYourPose_v1'
|
24 |
-
snapshot_download(repo_id=REPO_ID, local_dir='./FollowYourPose/checkpoints', local_dir_use_symlinks=False)
|
25 |
-
|
26 |
|
27 |
def run(
|
28 |
self,
|
@@ -40,7 +40,7 @@ class merge_config_then_run():
|
|
40 |
bottom_crop=0,
|
41 |
):
|
42 |
self.download_model()
|
43 |
-
default_edit_config='FollowYourPose/configs/pose_sample.yaml'
|
44 |
Omegadict_default_edit_config = OmegaConf.load(default_edit_config)
|
45 |
|
46 |
dataset_time_string = get_time_string()
|
|
|
18 |
self.text_encoder = None
|
19 |
self.vae = None
|
20 |
self.unet = None
|
21 |
+
|
22 |
+
def download_model():
|
23 |
REPO_ID = 'YueMafighting/FollowYourPose_v1'
|
24 |
+
snapshot_download(repo_id=REPO_ID, local_dir='./FollowYourPose/checkpoints', local_dir_use_symlinks=False)
|
25 |
+
|
26 |
|
27 |
def run(
|
28 |
self,
|
|
|
40 |
bottom_crop=0,
|
41 |
):
|
42 |
self.download_model()
|
43 |
+
default_edit_config='./FollowYourPose/configs/pose_sample.yaml'
|
44 |
Omegadict_default_edit_config = OmegaConf.load(default_edit_config)
|
45 |
|
46 |
dataset_time_string = get_time_string()
|