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

How do I install a c3d model? #45

Closed
PrincyX opened this issue May 22, 2019 · 6 comments
Closed

How do I install a c3d model? #45

PrincyX opened this issue May 22, 2019 · 6 comments

Comments

@PrincyX
Copy link

PrincyX commented May 22, 2019

No description provided.

@PrincyX
Copy link
Author

PrincyX commented May 22, 2019

Here is the error that I got:

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-15-12c68d5431da> in <module>()
     23 from scipy.spatial.distance import cdist,pdist,squareform
     24 import theano.sandbox
---> 25 import c3D_model
     26 import Initialization_function
     27 from moviepy.editor import VideoFileClip

ModuleNotFoundError: No module named 'c3D_model'

@rajanjitenpatel
Copy link

rajanjitenpatel commented May 22, 2019

You can comment it out. Without c3D_model, its working fine.

** import congif. that work for Demo.py**
import configparser
import collections
import time
import csv
from math import factorial
import os
from os import listdir
import skimage.transform
from skimage import color
from os.path import isfile, join
import numpy as np
import numpy
from datetime import datetime
from scipy.spatial.distance import cdist,pdist,squareform
import theano.sandbox
#import c3d
#import Initialization_function
#from moviepy.editor import VideoFileClip

from IPython.display import Image, display
import matplotlib.pyplot as plt
import cv2
import os, sys
import pickle
# from PyQt5 import QtCore, QtGui, QtWidgets
seed = 7
numpy.random.seed(seed)

I recommend to run this project on Keras 1.1.2 version. To Install use
pip install keras==1.1.2

For your information.
I have created C3D feature extraction using Google Colab for particular to this project. you can check this out. It is easy and faster way to extract video feature.

@logiti
Copy link

logiti commented May 22, 2019

It got this error after I made the changes that you suggested

NameError                                 Traceback (most recent call last)
<ipython-input-28-5d8fcdc00a42> in <module>()
    112     return  AllFeatures
    113 
--> 114 class PrettyWidget(QtGui.QWidget):
    115 
    116     def __init__(self):

NameError: name 'QtGui' is not defined

I installed QtGui by

pip install QtGui

@PrincyX
Copy link
Author

PrincyX commented May 23, 2019

@PrincyX, replace

PrettyWidget(QtGui.QWidget)

with

PrettyWidget(QtWidgets.QWidget)

According to the documentation, this might be a version error between PyQt4 and PyQt5

EDIT:
Also, you have to replace

def main():
    app = QtGui.QApplication(sys.argv)
    w = PrettyWidget()
    app.exec_()

with

def main():
    app = QtWidgets.QApplication(sys.argv)
    w = PrettyWidget()
    app.exec_()

for the same reason

@AndyHon
Copy link

AndyHon commented May 23, 2019

@rajanjitenpatel Thank you for your work. Do you need caffe to extract video features?I never successfully installed caffe。

@rajanjitenpatel
Copy link

Yes, @AndyHon Caffe is required for C3D video features extraction.

In C3D feature extraction using Google Colab project use C3D_feature_extraction_Colab.ipynb and follow Setup C3D model steps to install it. *No Additional installation required for Caffe.

@PrincyX PrincyX closed this as completed May 24, 2019
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