Coder Social home page Coder Social logo

Comments (6)

PrincyX avatar PrincyX commented on June 25, 2024

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'

from anomalydetectioncvpr2018.

rajanjitenpatel avatar rajanjitenpatel commented on June 25, 2024

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.

from anomalydetectioncvpr2018.

logiti avatar logiti commented on June 25, 2024

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

from anomalydetectioncvpr2018.

PrincyX avatar PrincyX commented on June 25, 2024

@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

from anomalydetectioncvpr2018.

AndyHon avatar AndyHon commented on June 25, 2024

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

from anomalydetectioncvpr2018.

rajanjitenpatel avatar rajanjitenpatel commented on June 25, 2024

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.

from anomalydetectioncvpr2018.

Related Issues (20)

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.