mayuema commited on
Commit
defd900
1 Parent(s): 0ff3cdf

first release

Browse files
FollowYourPose/followyourpose/models/unet.py CHANGED
@@ -211,7 +211,7 @@ class UNet3DConditionModel(ModelMixin, ConfigMixin):
211
  self.conv_out = InflatedConv3d(block_out_channels[0], out_channels, kernel_size=3, padding=1)
212
 
213
  self.skeleton_adapter = Adapter(cin=int(3*64), channels=[320, 640, 1280, 1280][:4], nums_rb=2, ksize=1, sk=True, use_conv=False)
214
- adapter_weight = torch.load('./FollowYourPose/checkpoints/t2iadapter_keypose_sd14v1.pth')
215
  self.skeleton_adapter.load_state_dict(adapter_weight)
216
 
217
 
 
211
  self.conv_out = InflatedConv3d(block_out_channels[0], out_channels, kernel_size=3, padding=1)
212
 
213
  self.skeleton_adapter = Adapter(cin=int(3*64), channels=[320, 640, 1280, 1280][:4], nums_rb=2, ksize=1, sk=True, use_conv=False)
214
+ adapter_weight = torch.load('./FollowYourPose/checkpoints/pose_encoder.pth')
215
  self.skeleton_adapter.load_state_dict(adapter_weight)
216
 
217
 
__pycache__/inference_followyourpose.cpython-38.pyc ADDED
Binary file (2.52 kB). View file
 
inference_followyourpose.py CHANGED
@@ -43,7 +43,7 @@ class merge_config_then_run():
43
  bottom_crop=0,
44
  ):
45
 
46
- default_edit_config='./FollowYourPose/configs/pose_sample.yaml'
47
  Omegadict_default_edit_config = OmegaConf.load(default_edit_config)
48
 
49
  dataset_time_string = get_time_string()
 
43
  bottom_crop=0,
44
  ):
45
 
46
+ default_edit_config='/home/user/app/FollowYourPose/FollowYourPose/configs/pose_sample.yaml'
47
  Omegadict_default_edit_config = OmegaConf.load(default_edit_config)
48
 
49
  dataset_time_string = get_time_string()