mirror of
https://github.com/storytold/storyteller-ml.git
synced 2026-10-09 00:09:55 +00:00
fix resolution issue
This commit is contained in:
@@ -237,7 +237,8 @@ class UNetSD_Animate_X(nn.Module):
|
||||
|
||||
|
||||
self.video_compositions = ['image', 'local_image', 'dwpose', 'randomref', 'randomref_pose', 'pose_embedding']
|
||||
self.resolution = [512, 768]
|
||||
#self.resolution = [512, 768]
|
||||
self.resolution = config['resolution'] # NB(bt,2025-02-04): Required for variable resolutions
|
||||
|
||||
|
||||
self.in_dim = in_dim
|
||||
|
||||
@@ -59,6 +59,9 @@ def parse_args():
|
||||
default=14,
|
||||
required=False
|
||||
)
|
||||
|
||||
# TODO(bt): Means to load model files
|
||||
|
||||
#parser.add_argument(
|
||||
# "--pretrained_model_name_or_path",
|
||||
# type=str,
|
||||
|
||||
@@ -4,9 +4,12 @@
|
||||
|
||||
python inference_cli.py \
|
||||
--cfg configs/Animate_X_infer.yaml \
|
||||
--image_file data_test_copy/images/astronaut.jpg \
|
||||
--image_file data_test_copy/images/future_girl_2.png \
|
||||
--pose_directory data_test_copy/saved_pose/dance_1 \
|
||||
--frame_directory data_test_copy/saved_frames/dance_1 \
|
||||
--pickle_data_file data_test_copy/saved_pkl/dance_1.pkl \
|
||||
--width 768 \
|
||||
--height 512
|
||||
|
||||
# --height 512
|
||||
# --height 768
|
||||
|
||||
Reference in New Issue
Block a user