Comments (6)
@keishatsai you can try to comment this line to run.
bgr[v0:v1, u0:u1] = eye_image_raw
bgr[v1:v2, u0:u1] = eye_image_annotated
These 2 line code just put 2 eye image at the left-top corner of frame. I am not sure if your u0,u1
is wrong or the image size is wrong.
from gazeml.
The error shows that eye_image_raw
has different size with u0, u1
.
Did you modify any code?
from gazeml.
@WuZhuoran Thanks for replying.
I didn't edit any code of this demo code. I just tried to run directly.
Is it because of threading thing? or other possibilities?
from gazeml.
@WuZhuoran
Thank you for the reply. I have skipped this error, but got hung at the end.
My input video is about 1536*2048, mp4
I0731 10:40:13.458220 23460 model.py:192] ------------------------------
I0731 10:40:13.458220 23460 model.py:193] Approximate Model Statistics
I0731 10:40:13.459215 23460 model.py:194] ------------------------------
I0731 10:40:13.459215 23460 model.py:195] FLOPS per input: 1,006,288,359.0
I0731 10:40:13.464202 23460 model.py:198] Trainable Parameters: 712,527
I0731 10:40:13.464202 23460 model.py:201] ------------------------------
W0731 10:40:13.470187 23460 deprecation_wrapper.py:119] From D:\GazeML\src\core\checkpoint_manager.py:45: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.
OpenCV: FFMPEG: tag 0x34363248/'H264' is not supported with codec id 27 and format 'mp4 / MP4 (MPEG-4 Part 14)'
OpenCV: FFMPEG: fallback to use tag 0x31637661/'avc1'
OpenH264 Video Codec provided by Cisco Systems, Inc.
00000060 [38 FPS] read: 10ms, preproc: 52ms, infer: 27ms, vis: 1ms, proc: 13609ms, latency: 13620ms
00000120 [34 FPS] read: 11ms, preproc: 56ms, infer: 29ms, vis: 1ms, proc: 13547ms, latency: 13559ms
00000180 [33 FPS] read: 13ms, preproc: 59ms, infer: 27ms, vis: 1ms, proc: 13516ms, latency: 13530ms
00000240 [33 FPS] read: 13ms, preproc: 61ms, infer: 28ms, vis: 2ms, proc: 13415ms, latency: 13428ms
00000300 [34 FPS] read: 11ms, preproc: 58ms, infer: 33ms, vis: 2ms, proc: 13545ms, latency: 13557ms
Exception in thread record:
Traceback (most recent call last):
File "C:\Miniconda3\envs\tensorflow-gpu\lib\threading.py", line 916, in _bootstrap_inner
self.run()
File "C:\Miniconda3\envs\tensorflow-gpu\lib\threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "elg_demo.py", line 113, in _record_frame
assert frame_index in data_source._frames
AssertionError
00000360 [34 FPS] read: 9ms, preproc: 57ms, infer: 26ms, vis: 1ms, proc: 13847ms, latency: 13857ms
Video "E:\test.mp4" closed.
from gazeml.
It seems that you already detected few frames. So you already worked with loading weights.
You problem occurs with
OpenCV: FFMPEG: tag 0x34363248/'H264' is not supported with codec id 27 and format 'mp4 / MP4 (MPEG-4 Part 14)'
OpenCV: FFMPEG: fallback to use tag 0x31637661/'avc1'
I believe this is a common issue of opencv with mp4. How about try avi
or webm
format?
from gazeml.
@WuZhuoran
It does because of the problem of video format, so I used ffmpeg to convert it.
Finally, I can run it to the end, but I still got assertion error after detecting few frames.
Anyhow, thanks for all the helps.
from gazeml.
Related Issues (20)
- Theta and Phi
- Train-data parameter in elg-demo file
- Video_out is not defined when using record_video for testing elg demo
- Running demo elg using CPU gives overlapping frame of original image and segmented eye image instead of segmented eye image in top-left corner
- Could you share code to test on different data sets?
- can_use_eye, can_use_eyelid and can_use_iris in elg_demo.py are False HOT 1
- Stuck with --from_video option HOT 3
- Could you please tell me where the pre-training weight should be placed in the Windows system?
- The project only has elg demo. how to run dpg demo
- RuntimeError: Error deserializing object of type int64 while deserializing a floating point number.
- Some questions about the 'unityeyes.py'
- iris_centre is not mean of iris_landmarks?
- About train/test data in MPIIGaze.h5
- Collaboration offer to help progress
- Gaze Vector Accuracy HOT 1
- elgo_demo.py stucks after video is closed HOT 1
- python and tensorflow version
- [TUTORIAL] How to save ELG model to .onnx and further to TensorRT .engine HOT 1
- Long proc time when running elg_demo.py on CPU HOT 1
- Can not get pre-trained weights
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.
from gazeml.