Comments (9)
I think you have different keras ( and backend theano version) compared to what I used in experiments
from anomalydetectioncvpr2018.
Hello @WaqasSultani thanks for your great work, so I guess I have to use the older version of keras
from anomalydetectioncvpr2018.
Hello @WaqasSultani thanks for your great work, so I guess I have to use the older version of keras
Hi BaRdia-eSm i ,
when I try to run Demo.py, i confronted the same problem
Exception has occurred: ValueError
I tried to use the older version of keras, keras 1.10
but it occurs
AttributeError: module 'tensorflow' has no attribute 'python'
I don't know what happened
from anomalydetectioncvpr2018.
Hello @WaqasSultani thanks for your great work, so I guess I have to use the older version of keras
Hi BaRdia-eSm i ,
when I try to run Demo.py, i confronted the same problem
Exception has occurred: ValueError
I tried to use the older version of keras, keras 1.10
but it occurs
AttributeError: module 'tensorflow' has no attribute 'python'
I don't know what happened
Hi,I meet the same problem: AttributeError: module 'tensorflow' has no attribute 'python'
can you tell me how to solve it?
thank you very much
from anomalydetectioncvpr2018.
@libb999 & @Singapore-mor, you have to change the backend from tensorflow to theano, there are two ways:
- Configure the file "$ HOME / .keras / keras.json" and set "theano" as back-end:
{
"image_data_format": "channels_last",
"epsilon": 1e-07,
"floatx": "float32",
"backend": "theano"
}
2. Use this code:
def set_keras_backend(backend):
if K.backend() != backend:
os.environ['KERAS_BACKEND'] = backend
importlib.reload(K)
assert K.backend() == backend
set_keras_backend("theano")
from anomalydetectioncvpr2018.
File "/home/sahilsingh/.local/lib/python3.6/site-packages/keras/utils/generic_utils.py", line 129, in deserialize_keras_object
raise ValueError('Improper config format: ' + str(config))
ValueError: Improper config format: {'l2': 0.0010000000474974513, 'name': 'WeightRegularizer', 'l1': 0.0}
how to solve this error, i tried for various solutions over internet but didn't got one
from anomalydetectioncvpr2018.
File "/home/sahilsingh/.local/lib/python3.6/site-packages/keras/utils/generic_utils.py", line 129, in deserialize_keras_object
raise ValueError('Improper config format: ' + str(config))ValueError: Improper config format: {'l2': 0.0010000000474974513, 'name': 'WeightRegularizer', 'l1': 0.0}
how to solve this error, i tried for various solutions over internet but didn't got one
I'm also having the same errror...
ValueError: Improper config format: {'l2': 0.0010000000474974513, 'name': 'WeightRegularizer', 'l1': 0.0}
from anomalydetectioncvpr2018.
File "/home/sahilsingh/.local/lib/python3.6/site-packages/keras/utils/generic_utils.py", line 129, in deserialize_keras_object
raise ValueError('Improper config format: ' + str(config))
ValueError: Improper config format: {'l2': 0.0010000000474974513, 'name': 'WeightRegularizer', 'l1': 0.0}
how to solve this error, i tried for various solutions over internet but didn't got oneI'm also having the same errror...
ValueError: Improper config format: {'l2': 0.0010000000474974513, 'name': 'WeightRegularizer', 'l1': 0.0}
Hello, is anyone got the solution for this?
from anomalydetectioncvpr2018.
File "/home/sahilsingh/.local/lib/python3.6/site-packages/keras/utils/generic_utils.py", line 129, in deserialize_keras_object
raise ValueError('Improper config format: ' + str(config))ValueError: Improper config format: {'l2': 0.0010000000474974513, 'name': 'WeightRegularizer', 'l1': 0.0}
how to solve this error, i tried for various solutions over internet but didn't got one
It seems the official model is written by Keras1 and you installed Keras2. You can modify the model file with Keras2 format.
Here I replace "W_regularizer": {"l2": 0.0010000000474974513, "name": "WeightRegularizer", "l1": 0.0}
with "kernel_regularizer": {"class_name": "L1L2", "config": {"l2": 0.0010000000474974513, "l1": 0.0}}
and it works.
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.