Comments (6)
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.
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.
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, 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.
@rajanjitenpatel Thank you for your work. Do you need caffe to extract video features?I never successfully installed caffe。
from anomalydetectioncvpr2018.
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)
- Error while compile model in TrainingAnomalyDetector_public.py HOT 1
- Evaluate_Anomaly_Detector on python HOT 1
- How does it show accuracy?
- TypeError: __init__() missing 1 required positional argument: 'units' when run Test_Anomaly_Detector_public.py HOT 5
- link is broken in readme HOT 1
- Test_Anomaly_Detector_public.py written in Python 2 HOT 3
- Test_Anomaly_Detector_public.py error due to tensorflow version HOT 1
- colab
- Pytorch Version (including I3D features) HOT 2
- Which tensorflow version should I install?
- Error when running DEMO_GUI.py
- How will the performance change if we change the number of training samples?
- Issue regarding conversion of model.json file to model.pb file HOT 4
- any proposal with tensor RT ??
- TypeError: ('Keyword argument not understood:', 'W_constraint') HOT 4
- Make annotation file.
- Real-time Application HOT 2
- AttributeError: 'Tensor' object has no attribute 'broadcastable'
- What is the license for this project?
- TypeError: ('Keyword argument not understood:', 'W_constraint')
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 anomalydetectioncvpr2018.