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

inference using other models #6

Open
Fouadbtlb opened this issue Nov 11, 2023 · 7 comments
Open

inference using other models #6

Fouadbtlb opened this issue Nov 11, 2023 · 7 comments

Comments

@Fouadbtlb
Copy link

hi,
thanks for you work.
i was wondering if there is a way to get inference using physformer, i tried but it s kinda complicated, can you help , thanks

@KegangWangCCNU
Copy link
Owner

Hi, let me know what help you need.

@amishparekh
Copy link

Hi, I am trying to use other models to get inference but running into errors maybe because of incorrect input shape.. I am trying to use TS-CAN_SCAMPS.h5 weights could you help me out in what different i need to do to make sure I am able to get bvp signal? also is the bvp signal obtained already filtered or do I need to do the post processing steps.. ?

@KegangWangCCNU
Copy link
Owner

@amishparekh @Fouadbtlb

I understand the difficulties you are facing. I will supplement this work, please come back in a few days to check.

@KegangWangCCNU
Copy link
Owner

KegangWangCCNU commented Dec 9, 2023

@amishparekh @Fouadbtlb
Hello, forgive my late update.

inference.py has been updated; it now supports eight models: seq, tscan, deepphys, efficientphys, physnet, chrom, pos, and ica, and allows for specifying weights as well as visualizing waveforms.

Please read the readme to understand how to use it.

If you encounter any issues during use, feel free to send an email or submit an issue!

@amishparekh
Copy link

@KegangWangCCNU
Thanks a lot! I got it where I was doing it wrong..

@photondestroyer
Copy link

@amishparekh hey, can you send me the pretrained model for physformer model, i am getting error while trying it myself and i cant find what i am doing wrong, now I just want to test it on UBFC before training it

@amishparekh
Copy link

@photondestroyer I haven't trained the physformer model.. you could look at https://github.com/ubicomplab/rPPG-Toolbox/tree/main/final_model_release There is a pretrained physformer model here.

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

4 participants