I installed and activated the conda env like you mentioned in the readme and installed the pyvhr package inside of it. Running the GUI works like a charm, but when I create a notebook with the provided sample code for using the Pipeline, I'm getting this error:
AttributeError Traceback (most recent call last)
Cell In [22], line 12
9 if not isfile(join(datadir, file)): continue
11 pipe = Pipeline()
---> 12 time, BPM, uncertainty = pipe.run_on_video(join(datadir, file), roi_approach="patches", roi_method="faceparsing")
14 plt.figure()
15 plt.plot(time, BPM)
File B:\Projects\pyVHR\pyVHR\analysis\pipeline.py:67, in Pipeline.run_on_video(self, videoFileName, cuda, roi_method, roi_approach, method, bpm_type, pre_filt, post_filt, verb)
64 assert os.path.isfile(videoFileName), "\nThe provided video file does not exists!"
66 sig_processing = SignalProcessing()
---> 67 av_meths = getmembers(pyVHR.BVP.methods, isfunction)
68 available_methods = [am[0] for am in av_meths]
70 assert method in available_methods, "\nrPPG method not recognized!!"
AttributeError: module 'pyVHR' has no attribute 'BVP'
Hi!
First of all, thanks for this awesome repo!
I installed and activated the conda env like you mentioned in the readme and installed the pyvhr package inside of it. Running the GUI works like a charm, but when I create a notebook with the provided sample code for using the Pipeline, I'm getting this error:
Do you have a fix for this?