Skip to content

How should I define the dataset path? #7

Answered by Dylan-H-Wang
BugMaker2002 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
You need to preprocess the original dataset before using UBFCDataset. Please check codes here

SLF-RPM/utils/utils.py

Lines 311 to 396 in 298b01f

def extract_ubfc_dataset(dataset_path, des_path_root):
if not os.path.exists(des_path_root):
os.makedirs(des_path_root)
start = time.time()
subjects = os.listdir(dataset_path)
subjects.sort()
# Detect face landmarks model
fa = face_alignment.FaceAlignment(
face_alignment.LandmarksType._2D,
device="cuda:1",
flip_input=False,
face_detector="blazeface",
)
# Subject
for subject in tqdm(subjects, desc="Extract UBFC-rPPG Dataset"):
subject_path = os.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Dylan-H-Wang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4 on December 06, 2023 10:24.