add ffaceformer code
This commit is contained in:
1 parent
5fcb839ad4
commit
b6567d5902
17 files changed
+2013
-114
No files matched your search
@@ -25,7 +25,7 @@ class MotionLiveDataset(Dataset):
|
||||
self.opt = opt
|
||||
self.phase = phase
|
||||
path_data= Path(opt.DATASET.root).joinpath(f"data_{phase}.npz")
|
||||
|
||||
assert phase == "train"
|
||||
|
||||
print(f"[{self.phase}] load data ... --> {path_data}")
|
||||
self.annodb = np.load(path_data, allow_pickle=True)['data'].item()
|
||||
@@ -50,12 +50,8 @@ class MotionLiveDataset(Dataset):
|
||||
|
||||
|
||||
def __len__(self):
|
||||
if self.phase == "train":
|
||||
return 20000
|
||||
elif self.phase == "valid":
|
||||
return 2000 #3000
|
||||
else:
|
||||
return 100
|
||||
return self.opt.DATASET.num_train_items # 20000
|
||||
|
||||
|
||||
def __getitem__(self, idx):
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user