Comments (8)
keras version 2.2.4
tensorflow version 1.12.0
from vqa_demo.
Downgrade your keras version to 2.0, it will work.
from vqa_demo.
The new error arises by downgrading the keras version.
@iamaaditya Is there any other way out for this problem ?
from vqa_demo.
You need to remove the top layers of the pre-trained VGG and keep the Dense layer of 4096 as your output
from vqa_demo.
@yashkark @AmrataRamchandani Hello, I have the same problem. Have you solved the problem? Can you share with us how to solve it? Thank you very much!
from vqa_demo.
did any one find any working solution for this issue?
from vqa_demo.
I have facing this issue can anyone help?
AttributeError Traceback (most recent call last)
~\RobotLab\lib\site-packages\tensorflow_core\python\keras\engine\base_layer.py in setattr(self, name, value)
2260 try:
-> 2261 super(tracking.AutoTrackable, self).setattr(name, value)
2262 except AttributeError:
AttributeError: can't set attribute
During handling of the above exception, another exception occurred:
AttributeError Traceback (most recent call last)
in
----> 1 model_vgg = get_image_model(CNN_weights_file_name)
2 plot_model(model_vgg, to_file='model_vgg.png')
in get_image_model(CNN_weights_file_name)
3 with the weights. Requires the file VGG.py inside models/CNN '''
4 from models.CNN.VGG import VGG_16
----> 5 image_model = VGG_16(CNN_weights_file_name)
6 image_model.layers.pop()
7 image_model.layers.pop()
~\OneDrive\Documents\Process Studio Workspace\VQA_Demo-master\models\CNN\VGG.py in VGG_16(weights_path)
102
103 #Remove the last two layers to get the 4096D activations
--> 104 model = pop(model)
105 model = pop(model)
106
~\OneDrive\Documents\Process Studio Workspace\VQA_Demo-master\models\CNN\VGG.py in pop(model)
22 model.outbound_nodes = []
23 else:
---> 24 model.layers[-1].outbound_nodes = []
25 model.outputs = [model.layers[-1].output]
26 model.built = False
~\RobotLab\lib\site-packages\tensorflow_core\python\keras\engine\base_layer.py in setattr(self, name, value)
2264 ('Can't set the attribute "{}", likely because it conflicts with '
2265 'an existing read-only @Property of the object. Please choose a '
-> 2266 'different name.').format(name))
2267 return
2268
AttributeError: Can't set the attribute "outbound_nodes", likely because it conflicts with an existing read-only @Property of the object. Please choose a different name.
from vqa_demo.
Finally, I overcame this issue. It's a package version problem. Use python==3.5, tensorflow==1.2.0, keras==2.0.6, scikit-learn==0.18.1, spacy==2.0.2, opencv-python==3.2.0.7 and it will work. I have uploaded my anaconda env at https://drive.google.com/file/d/1-9QUB7ho3jzXmFN2eM-6K4O5uvkGAOGZ/view?usp=sharing.
from vqa_demo.
Related Issues (20)
- Error while predicting HOT 1
- h5py/h5f.pyx in h5py.h5f.open() OSError: Unable to open file (file signature not found) HOT 5
- Error predicting HOT 2
- Error showing: No module named 'models' HOT 1
- ValueError: could not broadcast input array from shape (300) into shape (100)
- related to Vgg16...(please reply soon)
- you are trying to load a weight file containing 7 layers into a model with 0 layers
- Hi can you tell how you created the label encoding HOT 1
- VGG HOT 1
- Link to vgg16_weights.h5 is broken HOT 2
- from models.VQA.VQA import VQA_MODEL, error while installing models
- Accuracy fo pretrained model
- Error while loading image features
- Unexpected result on prediction even after using en_vectors_web_lg
- Can't access the download link of the drive for vgg16_weights.h5 HOT 2
- I am having this issue in the last step, 'NoneType' object has no attribute 'zfill' HOT 2
- fuck you shit code
- fuck your shi code
- Incompatible VQA_MODEL.json file with latest keras version HOT 1
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 vqa_demo.