rppg's People
Forkers
sgmzhou4 cx1628555321 lakshmanan1997 mhayatt lesyk wenxinsoong autogyro yanchimpu liyuejul qfei97 614175256 tata2324 xingmurong kshubham2107 stephenparvaresh boomfan wingniuqichao leatherking parksangbae videodnn guoleisun aurielws haimianying scywz1 aliushn liuwen-ts v3551g xiaoxiaozhangx wtvillet amirunpri2018 5ay3h blankxyz basox70 luigifaticoso abhishek97m yeshvini barongeng zhujiangzhijia szsongyj peterzhousz prabhatbharat takeuchitaiga juminina rijon1810 orayo2002 hmy-icon keithwang5 s-stu nsuraya80 mattjeon rremani rremani1990 li-yibing mtn75 aaryavrate joshgreifer zhao-han-tao honorifica getuntun davgit shreyasvinaya prateekiitr anushree-dsgit ndthien150 hupanice alejo760 ckim0922 willy-is hhq6567 thehimanshubairwa jingqiuyang pedrombmachado peterzs cjr4702 hanzhoujack rakibulll oyeji pppig0132 weizhi1221 dsamuelhodge ferencfresz wpsseu hopern kel-x lqc456 marshb final-year-project-kdhprppg's Issues
Questions about the pkl file
Do you have a paper for this program?
What paper is this based on?
Hi, thank you for your code. What paper is your work based on?
After run "python3 run.py --source=0 --frame-rate=25"
Thank you very much for exposing the code.
When I run "python3 run.py --source=0 --frame-rate=25", I have changed the source to int, but it still appears:"init
time 3.2095234394073486“.
_pickle.UnpicklingError: invalid load key, 'v'. on Ubuntu 22.04
Downloading: "https://download.pytorch.org/models/resnet34-b627a593.pth" to /home/snowuyl/.cache/torch/hub/checkpoints/resnet34-b627a593.pth
100.0%
Traceback (most recent call last):
File "/home/snowuyl/samba/workspace_Python/rPPG/run.py", line 65, in
runPOS(source)
File "/home/snowuyl/samba/workspace_Python/rPPG/run.py", line 39, in call
capture = CaptureFrames(self.batch_size, source, show_mask=True)
File "/home/snowuyl/samba/workspace_Python/rPPG/capture_frames.py", line 20, in init
self.model.load_state_dict(torch.load('linknet.pth'))
File "/home/snowuyl/.local/lib/python3.10/site-packages/torch/serialization.py", line 713, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/home/snowuyl/.local/lib/python3.10/site-packages/torch/serialization.py", line 920, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, 'v'.
Some question about project
Hi dear,
1- You mention this works with skin pixels, But If one who has dark skin how this system is able to detect the Hear rate? This system is robust for white skins when color of skins be red this system recognition the one who has high heart rate, right?
2- Is it system robust to light conditions?
References
Which paper did you refer to?
Face anti-spoofing dataset - CASIA & MSU
Segmentation fault (core dumped)
when runing this:
python3 run.py --source=0 --frame-rate=25
got this error:
Segmentation fault (core dumped)
any ideas?
Unable to download model files from the link
Whenever I use the google drive link to download the model, I get a 502 error, can you maybe email me the model files?
[email protected]
or check the link health?
Open Source License
Can you please kindly add an Open Source MIT License to this project?
linknet.pth
I wonder if you would like to provide the training program for linknet.pth
I want to know how to train extraction, please!
Face Segmentation Dataset
Hi Nasir,
Is that possible for you to share your face segmentation dataset.
Thank you very much,
Donghao
Could you please send me the pretrain model 'linknet.pth'?
Sorry for asking this request. but I could't download the pretrain model 'linknet.pth' from your repository. If it's quite all right, please send this file to [email protected]. Thanks very much.
Don't Read torch.load( ) with CPU
My environment is python3.8 with MacBookAir(M1) .
I download the source code and run on terminal ' python run.py --source=0 --frame-rate25 '
I got this error message.
init
Traceback (most recent call last):
File "run.py", line 65, in
runPOS(source)
File "run.py", line 39, in call
capture = CaptureFrames(self.batch_size, source, show_mask=True)
File "/Users/jaehyuni/Desktop/rPPG-master/rPPG/capture_frames.py", line 21, in init
self.model.load_state_dict(torch.load('linknet.pth'), map_location='cpu')
File "/opt/homebrew/Caskroom/miniforge/base/envs/yolo/lib/python3.8/site-packages/torch/serialization.py", line 608, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/opt/homebrew/Caskroom/miniforge/base/envs/yolo/lib/python3.8/site-packages/torch/serialization.py", line 787, in _legacy_load
result = unpickler.load()
File "/opt/homebrew/Caskroom/miniforge/base/envs/yolo/lib/python3.8/site-packages/torch/serialization.py", line 743, in persistent_load
deserialized_objects[root_key] = restore_location(obj, location)
File "/opt/homebrew/Caskroom/miniforge/base/envs/yolo/lib/python3.8/site-packages/torch/serialization.py", line 175, in default_restore_location
result = fn(storage, location)
File "/opt/homebrew/Caskroom/miniforge/base/envs/yolo/lib/python3.8/site-packages/torch/serialization.py", line 151, in _cuda_deserialize
device = validate_cuda_device(location)
File "/opt/homebrew/Caskroom/miniforge/base/envs/yolo/lib/python3.8/site-packages/torch/serialization.py", line 135, in validate_cuda_device
raise RuntimeError('Attempting to deserialize object on a CUDA '
RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.
So, I entered capture_frames.py .
edit
self.model.load_state_dict(torch.load('linknet.pth'), map_location='cpu')
Still the same error occurs.
Help me plz!
Error - "_pickle.UnpicklingError: invalid load key"
I got the following error message while running the program. Also, 'linknet.pth' is present the folder.
PS: I'm not using a CUDA enabled device and i tried to use map_location='cpu'
argument in torch.load
function.
Thanks!
Davi
Traceback (most recent call last):
File "run.py", line 65, in <module>
runPOS(source)
File "run.py", line 39, in __call__
capture = CaptureFrames(self.batch_size, source, show_mask=True)
File "/home/davi/Dropbox/rPPG/nasir6_rPPG/capture_frames.py", line 20, in __init__
self.model.load_state_dict(torch.load('linknet.pth'))
File "/home/davi/.cv/OpenCV-3.4-py3/lib/python3.6/site-packages/torch/serialization.py", line 386, in load
return _load(f, map_location, pickle_module, **pickle_load_args)
File "/home/davi/.cv/OpenCV-3.4-py3/lib/python3.6/site-packages/torch/serialization.py", line 563, in _load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, 'v'.
Extend data recording
Currently, only records 300 frames. How to extend to an infinite number of frames?
can't able to download pth model using git-lfs
Git LFS: (0 of 0 files, 1 skipped) 0 B / 0 B, 83.27 MB skipped [f18ca579d42765d26bfdeb1a9833826a78ef42e61cb2974b6263c18d21fc8f84] Object does not exist on the server: [404] Object does not exist on the server
error: failed to fetch some objects from 'https://github.com/nasir6/rPPG.git/info/lfs'
some questions
Thank you for the code,but I have some questions:
1.Because my computer does not take a camera, directly recorded a good video processing. Parameter “framefare” is the framerate of the video???
2.What is the principle of extracting heart rate? Do you have corresponding references
It seems the code just gives a face seg result?
I test the code, and return the unstable face seg result?
Error
hi, there is an error when I run the code:
(py36) E:\github\rPPG-master\rPPG-master>python run.py --source=0 --frame-rate=25
init
Traceback (most recent call last):
File "run.py", line 66, in
runPOS(source)
File "run.py", line 39, in call
capture = CaptureFrames(self.batch_size, source, show_mask=True)
File "E:\github\rPPG-master\rPPG-master\capture_frames.py", line 20, in init
self.model.load_state_dict(torch.load('linknet.pth'))
File "D:\Anaconda\envs\py36\lib\site-packages\torch\serialization.py", line 585, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "D:\Anaconda\envs\py36\lib\site-packages\torch\serialization.py", line 755, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, 'v'.
TypeError: can't multiply sequence by non-int of type 'float'
The problem is that the framerate was seen as string.
I have added the cast to float and it works.
Can not compute HR with small face
Dear Sir, I am very interested in your work and many thanks for your work. Could I ask a question? It is fine when the face is large. But it can not compute HR when the face is not large. The HR is NaN. Thank you!
How to bring HR value to display on the live frames
In Plot_cont.py file, we have update_data() to update the data and set HR value .. I was trying to pass this HR value into Capture_Frames class to display on to the frames.
As we have self.plotter = DynamicPlot(self.signal_size, self.batch_size) this line in run.py where i will get the object of DynamicPlot class. using this object was trying to call self.hr_texts in plot_cont.py file
hr_text = 'HR: ' + str(int(hr_fft))
self.hr_texts.set_text(hr_text)
Am new to this multiprocessing code, Please help me in this.
Kindly add the packages version in requirements.txt file
HRV from HR
Thanks for sharing your repo! I am running your codes and want to know how can I get HRV(heart rate variability) from HR. I think we need R-R intervals to calculate HRV, but I don't know how to get it. Do you have any ideas?
Model performance metrics
Thanks for the open-sourced repository. From previous GitHub issues I understand that there is no paper published but I would like to find out if there are performance metrics for the rPPG model for us users to learn about its robustness.
Problem with HR measures
Hello,
thank you for your work! I'm very interessed on it. Can you help me, please? Everything seems all right, the code run, the mask is created and also the interface with graphs appears but the plot is always flat and the HR is not recorded (it is always NaN).
After run "python3 run.py --source=0 --frame-rate=25", The window flashed 0.1s
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.