Coder Social home page Coder Social logo

Comments (6)

VivaaindreanNg avatar VivaaindreanNg commented on July 3, 2024

Hey there.

Have you solved the issue on running with Demo_GUI? I'm having the same trouble as yours and couldn't exactly pinpoint why the error persists.

from anomalydetectioncvpr2018.

VVVVictorJ avatar VVVVictorJ commented on July 3, 2024

Hey there.

Have you solved the issue on running with Demo_GUI? I'm having the same trouble as yours and couldn't exactly pinpoint why the error persists.

Hi.
I didn't solve it.Could you tell me how to fix it if you deal with it?

from anomalydetectioncvpr2018.

VivaaindreanNg avatar VivaaindreanNg commented on July 3, 2024

Hi.
I didn't solve it.Could you tell me how to fix it if you deal with it?

Well, I've just managed to run the code. So, you just have to re-modify the type of output. The line: cap = cv2.VideoCapture(video_path) invokes an error because the output of QtGui.QFileDialog.getOpenFileName(...) returns you a tuple.

So all you gotta do is to just add another placeholder, like this:
video_path, _ = QtGui.QFileDialog.getOpenFileName(...)
instead of just video_path = QtGui.QFileDialog.getOpenFileName(...) .

from anomalydetectioncvpr2018.

VVVVictorJ avatar VVVVictorJ commented on July 3, 2024

Hi.
I didn't solve it.Could you tell me how to fix it if you deal with it?

Well, I've just managed to run the code. So, you just have to re-modify the type of output. The line: cap = cv2.VideoCapture(video_path) invokes an error because the output of QtGui.QFileDialog.getOpenFileName(...) returns you a tuple.

So all you gotta do is to just add another placeholder, like this:
video_path, _ = QtGui.QFileDialog.getOpenFileName(...)
instead of just video_path = QtGui.QFileDialog.getOpenFileName(...) .

Thank you very much. Do you run all the project successfull?
I also met some problem on the Testing_Anomaly_Detector_public.py
It views that something with index.

from anomalydetectioncvpr2018.

VivaaindreanNg avatar VivaaindreanNg commented on July 3, 2024

Nah. So far the only module that I'm able to execute is the Demo_GUI.

Are you able to run Training_Anomaly_Detector_public.py?

from anomalydetectioncvpr2018.

VVVVictorJ avatar VVVVictorJ commented on July 3, 2024

Nah. So far the only module that I'm able to execute is the Demo_GUI.

Are you able to run Training_Anomaly_Detector_public.py?

I didn't execute anyone. -_-
I also met some problem on Demo_Gui.
Would you met it ever?Could you tell me how to do if you fix it?
Like this:
/home/victor/PycharmProjects/AnomalyDetectionCVPR2018/SampleVideos/Explosion025_x264.txt
<module 'cv2' from '/home/victor/anaconda3/envs/AnomalyDetectionCVPR2018/lib/python3.5/site-packages/cv2.cpython-35m-x86_64-linux-gnu.so'>
Unable to stop the stream: Inappropriate ioctl for device
Traceback (most recent call last):
File "/home/victor/PycharmProjects/AnomalyDetectionCVPR2018/Demo_GUI.py", line 184, in SingleBrowse
F_Score = np.matlib.repmat(predictions[iv],1,(int(total_segments[iv+1])-int(total_segments[iv])))
AttributeError: module 'numpy' has no attribute 'matlib'

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.