Closed trainee0111 closed 4 days ago
hi @trainee0111 Thanks for brings those up, I'll make sure to fix those in my next PR.
You're right, the documentation around chunk and save seems like it could use a re-write. Here's an updated description.
For chunk
:
frames(np.array): video frames (the full length of the video)
bvps(np.array): blood volumne pulse (PPG) labels. (the full length of the video)
chunk
takes both frames and bvps and splits them into N non-overlapping segments of chunk_length
frames and samples.
For save
:
The length og the frames_clips list and the bvps_clips list is the same
Args:
frames_clips(np.array): video frame clips. Each clip is of chunk_length
bvps_clips(np.array): bvp signal clips, each of length chunk_length
Returns:
count: count of preprocessed data
Hope that helps!
hi @trainee0111 Thanks for brings those up, I'll make sure to fix those in my next PR.
You're right, the documentation around chunk and save seems like it could use a re-write. Here's an updated description.
For : frames(np.array): video frames (the full length of the video) bvps(np.array): blood volumne pulse (PPG) labels. (the full length of the video)
chunk
chunk
takes both frames and bvps and splits them into N non-overlapping segments of frames and samples.chunk_length
For : The length og the frames_clips list and the bvps_clips list is the same Args: frames_clips(np.array): video frame clips. Each clip is of bvps_clips(np.array): bvp signal clips, each of length Returns: count: count of preprocessed data
save``chunk_length``chunk_length
Hope that helps!
Thank you very much for your detailed reply, it has been very helpful for me!
Thank you very much for the excellent toolbox your team has provided. While learning to use this toolbox, I encountered some issues that I haven't fully understood. In BaseLoader.py, I noticed some spelling errors in function definitions, such as "generate_pos_psuedo_labels()" and "Hilbert envlope." Of course, these errors do not affect function calls.
I have a question about the chunk() function. The returned values, frames_clips and bvp_clips, seem to be parameters passed to the save() function. However, the descriptions of these two arrays appear to differ. This might be due to my limited experience and first encounter with the relevant theories and methods. Could you please clarify the reason for this? Thank you!