Coder Social home page Coder Social logo

Comments (4)

WaqasSultani avatar WaqasSultani commented on June 25, 2024

No, it is not a bug. Please check out the code again

from anomalydetectioncvpr2018.

VivaaindreanNg avatar VivaaindreanNg commented on June 25, 2024

Hello,
seems like you have a bug in line 267 in TrainingAnomalyDetector_public.py

Hello there,

I've executed the TrainingAnomalyDetector_public.py, and it raised a TypeError as shown below:

File "D:\Anaconda3\envs\tf\lib\site-packages\tensorflow\python\framework\ops.py", line 671, in bool
raise TypeError("Using a tf.Tensor as a Python bool is not allowed. "

TypeError: Using a tf.Tensor as a Python bool is not allowed. Use if t is not None: instead of if t: to test if a tensor is defined, and use TensorFlow ops such as tf.cond to execute subgraphs conditioned on the value of a tensor.

Is it because of the keras/theano version? I'm using keras=1.2.2 & theano=1.0.4 by the way. I couldn't exactly pinpoint on why it raised the error.

from anomalydetectioncvpr2018.

Pr0d19y avatar Pr0d19y commented on June 25, 2024

You are right! sorry about that :)

from anomalydetectioncvpr2018.

eticin avatar eticin commented on June 25, 2024

Please, can you explain why it is not a bug? Formulation in the code differs from the formulation given in the paper

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.