Giter Site home page Giter Site logo

kegangwangccnu / physbench Goto Github PK

View Code? Open in Web Editor NEW
80.0 2.0 5.0 66.61 MB

Simple, fast, and fair evaluation of remote physiological sensing models

License: Other

Jupyter Notebook 87.06% Python 12.94%
healthcare-application remote-physiological-measurement remote-ppg rppg

physbench's People

Contributors

kegangwangccnu avatar mcjacktang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

physbench's Issues

inference using other models

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

the model weight of Physformer

Hello, first of all, thank you very much for your open-source code!
It seems that you are involved in the Physformer model here. I met the question that the rppg shape is really strange,from the Physformer‘s github code:ZitongYu/PhysFormer#21

Do you have the model weight of Physformer trained by yourself and how can I use it?

Thanks for sharing!!!

A question of EfficientPhys

Hello, first of all, thank you very much for your open-source code! Hello! It seems that you are involved in the EfficientPhys module here. Do you have the source code for EfficientPhys?

报错:模型预期有0层,但是预训练权重有9层

运行命令:python inference.py --video 1424.avi --model efficientphys --show-wave发生了两个报错:

  1. 模型中有一个名为 'ep' 的层,这个层的 build() 方法被调用了,但是这个层并没有实现 build() 方法。这可能会导致一些问题,因为这个层会被标记为已经构建(built),尽管它实际上并没有被构建。
  2. 模型预期有0层,但是预训练权重有9层

记录一下报错记录:

PS D:\桌面\PhysBench\PhysBench> python inference.py --video 1424.avi --model efficientphys --show-wave
2024-04-06 15:10:53.108186: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation
orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
2024-04-06 15:10:53.789180: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation
orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
2024-04-06 15:10:55.480582: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX512F AVX512_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
D:\Anaconda\envs\physbench\lib\site-packages\keras\src\layers\layer.py:357: UserWarning: build() was called on layer 'ep', however the layer does not have a build() method implemented and it looks like it has unbuilt state. This will cause the layer to be marked as built, despite not being actually built, which may cause failures down the line. Make sure to implement a proper build() method.
warnings.warn(
Traceback (most recent call last):
File "D:\桌面\PhysBench\PhysBench\inference.py", line 53, in
ep.load_weights('./weights/EfficientPhys_UBFC.h5')
File "D:\Anaconda\envs\physbench\lib\site-packages\keras\src\utils\traceback_utils.py", line 122, in error_handler
raise e.with_traceback(filtered_tb) from None
File "D:\Anaconda\envs\physbench\lib\site-packages\keras\src\legacy\saving\legacy_h5_format.py", line 357, in load_weights_from_hdf5_group
raise ValueError(
ValueError: Layer count mismatch when loading weights from file. Model expected 0 layers, found 9 saved layers.

如何对VIPL数据进行处理呢?

您好,我看在你的项目中有一个PhysFormer_vipl.ipynb文件,里面是直接使用训练好的权重。想请教一下如何使用vipl进行训练呢,我看在数据处理中并没有对VIPL进行处理。感谢您的回复。

A question about conference.py

Hello, first of all, thank you very much for your open-source code! I am a student and I need to refer to your code recently. I have a question about your code.
model = EP() model.build(input_shape=(None, 450, 8, 8, 3)) model.load_weights(args.weights)
I would like to use EfficientPhys here. How can I modify the code?

Inquire saved values via inference.py

Hello, First of all, I would like to thank you for sharing your valuable knowledge and results.
I am a student to use the model implemented in your repository.
In the code implemented on inference.py , there are lines 68, 69

predict = np.nanmean(_, axis=0)
bvp = np.concatenate([bvp, predict])

Can you tell me what the bvp value obtained through this code means? When I read read.me , it's called the wave value, but I don't know because I'm not familiar with this domain.

Which code should I refer to if I want to extract and save my heart rate?
I'd appreciate your help.

请问训练时是否进行了人脸和关键点检测?比较困惑

您好,在学习您这个框架过程中,发现在公开数据集的预处理中,在load_dataset函数中进行了人脸以及关键点检测。但最后生成.h5文件中并没有写入boxes和landmark数据,这两个数据都放在tmp文件夹中的缓存文件中。
后续在推理过程中(inference.py)使用了人脸以及关键点检测。
因此比较困惑,想知道是否在训练过程中 进行了人脸以及关键点检测,是否使用了tmp中的缓存文件。
感想您的解答,谢谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.