Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Welch() takes 2 positional arguments but 5 were given. #79

Open
adriano-op opened this issue Jul 12, 2023 · 0 comments
Open

Comments

@adriano-op
Copy link

adriano-op commented Jul 12, 2023

function : bvps, timesES, bpmES = pipe.run_on_video(videoFileName,......)

Processing Video /content/cohface/3/3/data.avi

Roi processing...

  • Extraction approach: holistic
  • Number of windows: 53
  • Win size: (#ROI, #landmarks, #frames) = (1, 3, 160)

Pre filtering...

  • Pre-filter applied: BPfilter

BVP extraction...

  • Extraction method: cpu_CHROM
  • Post-filter applied: BPfilter

BPM estimation...

  • roi appproach: holistic

TypeError Traceback (most recent call last)
in <cell line: 12>()
10
11# run
---> 12 bvps, timesES, bpmES = pipe.run_on_video(videoFileName,
13 winsize=8,
14 roi_method='convexhull',

2 frames
/content/pyVHR/pyVHR/analysis/pipeline.py in run_on_video(self, videoFileName, winsize, ldmks_list, cuda, roi_method, roi_approach, method, estimate, movement_thrs, patch_size, RGB_LOW_HIGH_TH, Skin_LOW_HIGH_TH, pre_filt, post_filt, verb)
442 bpmES = BVP_to_BPM_cuda(bvps_win, fps, minHz=Pipeline.minHz, maxHz=Pipeline.maxHz)
443 else:
--> 444 bpmES = BVP_to_BPM(bvps_win, fps, minHz=Pipeline.minHz, maxHz=Pipeline.maxHz)
445
446 elif roi_approach == 'patches':

/content/pyVHR/pyVHR/BPM/BPM.py in BVP_to_BPM(bvps, fps, minHz, maxHz)
449 else:
450 obj.data = bvp
--> 451 bpm_es = obj.BVP_to_BPM()
452 bpms.append(bpm_es)
453 return bpms

/content/pyVHR/pyVHR/BPM/BPM.py in BVP_to_BPM(self)
290 if self.data.shape[0] == 0:
291 return np.float32(0.0)
--> 292 Pfreqs, Power = Welch(self.data, self.fps, self.minHz, self.maxHz, self.nFFT)
293 # -- BPM estimate
294 Pmax = np.argmax(Power, axis=1) # power max

TypeError: Welch() takes 2 positional arguments but 5 were given.

@adriano-op adriano-op changed the title package version conflict . Jul 12, 2023
@adriano-op adriano-op changed the title . package version conflict. Jul 12, 2023
@adriano-op adriano-op changed the title package version conflict. . Jul 13, 2023
@adriano-op adriano-op changed the title . TypeError: Welch() takes 2 positional arguments but 5 were given. Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant