update actor5 and infer_folder_live
This commit is contained in:
1 parent
854609dd0c
commit
dac314c9a5
34 files changed
+2810
-658
No files matched your search
+7
-7
@@ -56,9 +56,9 @@ if __name__ == "__main__":
|
||||
# fID = "BU6A9965"
|
||||
# ipath_data = Path(f"/mfs/lsen/DATA/Actor3/processing/{fID}/")
|
||||
|
||||
fID = "4R3A0004"
|
||||
ipath_data = Path(f"/mfs/lsen/DATA/Actor2/happy/{fID}/")
|
||||
ipath_audio = ipath_data.joinpath("audio/audio_trim_60s.wav")
|
||||
fID = "4R3A0071"
|
||||
ipath_data = Path(f"/ssdata1/lsen/DATA/Actor5/processing/{fID}/")
|
||||
ipath_audio = ipath_data.joinpath("audio/audio_trim.wav")
|
||||
|
||||
# laod motion
|
||||
ipath_feat_exp = ipath_data.joinpath("audio/feat_DECA_exp_trim.npy")
|
||||
@@ -88,10 +88,10 @@ if __name__ == "__main__":
|
||||
raw_speech = raw_speech[: len_align]
|
||||
print(f"after raw_speech shape = {raw_speech.shape}, sr = {sample_rate}, duration = {(len(raw_speech)/sample_rate)}")
|
||||
|
||||
nwinds = 60
|
||||
data_motion = torch.from_numpy(data_motion[np.newaxis, :50*nwinds, :]) # (1, 3000, 53)
|
||||
raw_speech = raw_speech[:nwinds * sample_rate]
|
||||
|
||||
nwinds_beg = 60
|
||||
nwinds_end = 120
|
||||
data_motion = torch.from_numpy(data_motion[np.newaxis, 50*nwinds_beg:50*nwinds_end, :]) # (1, 3000, 53)
|
||||
raw_speech = raw_speech[nwinds_beg *sample_rate : nwinds_end * sample_rate]
|
||||
|
||||
# load wav2Vec model
|
||||
print("load Wav2Vec2Model ...")
|
||||
|
||||
Reference in new issue
Block a user