Comments (3)
Did you try installing from source? I wrap the output as a list
so it should have len
in both python 2 and 3
from keras-vis.
It's because filter returns an Iterator in python3. Fixed.
from keras-vis.
It is not fixed. I still have the same error. If it is my special case, please ignore this comment.
TypeError Traceback (most recent call last)
in ()
----> 1 opt.minimize(max_iter=500, verbose=True, image_modifiers=[Jitter()], callbacks=[GifGenerator('opt_progress')])
C:\ProgramData\Anaconda3\lib\site-packages\vis\optimizer.py in minimize(self, seed_img, max_iter, image_modifiers, callbacks, verbose)
132 # Trigger callbacks
133 for c in callbacks:
--> 134 c.callback(i, named_losses, overall_loss, grads, wrt_value)
135
136 # Gradient descent update.
C:\ProgramData\Anaconda3\lib\site-packages\vis\callbacks.py in callback(self, i, named_losses, overall_loss, grads, wrt_value)
59 def callback(self, i, named_losses, overall_loss, grads, wrt_value):
60 img = utils.deprocess_image(wrt_value[0])
---> 61 img = utils.draw_text(img, "Step {}".format(i + 1))
62 self.writer.append_data(img)
63
C:\ProgramData\Anaconda3\lib\site-packages\vis\utils\utils.py in draw_text(img, text, position, font, font_size, color)
230
231 font_files = _find_font_file(font)
--> 232 if len(font_files) == 0:
233 logger.warn("Failed to lookup font '{}', falling back to default".format(font))
234 font = ImageFont.load_default()
TypeError: object of type 'filter' has no len()
from keras-vis.
Related Issues (20)
- [question] electrode contribution in EEG input
- Is there any reason why no demo for activation maximization for resnet?
- Is the project still maintained? HOT 2
- Exact gradient values
- Memory increases and iterations slow down while using visualize_saliency
- 3D MRI Image
- How to clip the positive gradients when using visualization_cam?
- AttributeError: module 'tensorflow' has no attribute 'get_default_graph' HOT 1
- AttributeError: 'list'/integer/float object has no attribute 'build_loss' in visualize_saliency_with_losses
- ImportError: cannot import name '_Conv' from 'keras.layers.convolutional' HOT 19
- Generated Image Color
- Issue - "ImportError: cannot import name '_Conv' from 'keras.layers.convolutional'" HOT 2
- Tensorflow version? HOT 1
- Problem with custom CNN VGG16 (unsupported operand type(s) for *: 'int' and 'NoneType')
- scipy 1.5.2 ImportError: cannot import name 'imresize' HOT 3
- Cannot convert a symbolic Keras input/output to a numpy array... HOT 1
- v
- Is this also working for Faster R-CNN or Mask R-CNN?
- Why is pre-activation output used for computing vanilla saliency map?
- AttributeError: module 'keras.utils.generic_utils' has no attribute 'populate_dict_with_module_objects'
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 keras-vis.