-
Notifications
You must be signed in to change notification settings - Fork 44
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
Python action. Py prompts for error #5
Comments
Device: MacBook Pro 2016 |
CudnnLSTM is a GPU-only operation. (it depends on CuDNN) Delete action.py Line 26 and insert below code. fight_detection/server/action.py Line 26 in 4eb4930
from tensorflow.keras import layers
lambda_loss_amount = 0.0015
model = tf.keras.Sequential([
# relu activation
layers.Dense(n_hidden, activation='relu',
kernel_initializer='random_normal',
bias_initializer='random_normal',
batch_input_shape=(batch_size, n_steps, n_input)
),
# cuDNN
# layers.CuDNNLSTM(n_hidden, return_sequences=True, unit_forget_bias=1.0),
# layers.CuDNNLSTM(n_hidden, unit_forget_bias=1.0),
layers.LSTM(n_hidden, return_sequences=True, unit_forget_bias=1.0),
layers.LSTM(n_hidden, unit_forget_bias=1.0),
layers.Dense(n_classes, kernel_initializer='random_normal',
bias_initializer='random_normal',
kernel_regularizer=tf.keras.regularizers.l2(lambda_loss_amount),
bias_regularizer=tf.keras.regularizers.l2(lambda_loss_amount),
activation='softmax'
)
])
model.load_weights("weights/action.h5") |
This repo is an LSTM, I want to use it as real-time streaming video detection (RTSP), is it feasible? |
In this project LSTM is expensive but Pose Estimation (CNN) is more expensive. It spend most of time (About 95 percent) So if your machine can process pose estimation in real time, I think it may feasible. In my case, I tested it in the following environment. (Note : Only one client.) I think that following case will need more resource.
|
If I want to realize real-time image detection of RTSP stream, do you have any Suggestions? |
If I want to realize real-time image detection of RTSP stream, do you have any Suggestions? @imsoo |
Sorry for my late reply. I've never used RTSP. I regret to say that I am unable to help you. But I read about RTSP and then I'll let you know if good idea comes of it. |
Ok, thank you very much! |
Unfortunately This repo doesn't support sequence of images. |
Ok, I will try it with the video, and I will ask you if I have any questions. Thank you |
I would like to ask if there is any recommended that can realize real-time fight detection? |
Sorry I'm not sure what's meant by "warehouse". I think that "warehouse" means repository or dataset. Is that right? if so, Below dataset looks good. And in case of repository, I don't know actually which one is the best. I think it all depends on your purpose.
|
What is the format of msg data? #17 |
tensorflow.python.framework.errors_impl.InvalidArgumentError: No OpKernel was registered to support Op 'CudnnRNN' used by node cu_dnnlstm/CudnnRNN (defined at action.py:28) with these attrs: [seed=0, dropout=0, input_mode="linear_input", T=DT_FLOAT, direction="unidirectional", rnn_mode="lstm", seed2=0, is_training=true]
Registered devices: [CPU]
Registered kernels:
The text was updated successfully, but these errors were encountered: