Comments (4)
python 3.5 trains 0.10.3rc4 ubuntu 16.04 It seems that actually plt.show() is what affects this behaviour as in with plt.show() I can see the image and without I can't
from clearml.
Hi @Danzip-r
I Tested the attached code, on Ubuntu 16.04, Python 3.5.2, Matplotlib 3.0.3, trains 0.10.3 (final),
working as expected.
Please notice that you have to call plt.show() in order to present the image (ref), without calling it, matplotlib will not actually generate a figure (regardless of the matplotlib backend you are using, Agg, QT, PyCharm, etc.)
Both
...
plt.title("prediction:{} label :{}".format(predicted[a[0]], y_test[a[0]]))
plt.imshow(X_test[a[0]].reshape([28, 28]))
plt.show()
and
...
plt.imshow(X_test[a[0]].reshape([28, 28]))
plt.title("prediction:{} label :{}".format(predicted[a[0]], y_test[a[0]]))
plt.show()
Will upload the image to the "Debug Images" section.
Could you verify again the problem exists with v0.10.3 (I believe it was fixed in the final release)
from clearml.
@Danzip-r, I can't seem to reproduce this behavior.
This code works as expected:
import matplotlib.pyplot as plt
import numpy as np
from trains import Task
task = Task.init(project_name='examples', task_name='Matplotlib imshow example')
m = np.eye(256, 256, dtype=np.uint8)
plt.title('test')
plt.imshow(m)
plt.show()
print('done')
What are the exact versions of python/trains/OS you are using?
from clearml.
Yup you have to call plt.show() this was our main issue
from clearml.
Related Issues (20)
- Debug sample disappear when experiemnt is running HOT 2
- Dataset uploading error
- Fixed users in `apiserver.conf` receiving `401` (Unauthorized) HOT 2
- How to upload datasets to remote S3 without compressing them? HOT 1
- `api.files_server` without a port causes pipeline to fail HOT 4
- Incorrect ordering of iterations in scalar reporting of metrics HOT 1
- Greater control in downsampling used in plots HOT 2
- Modify report_matplotlib_figure to Omit Iteration Value When iteration=None HOT 3
- Error when calling classes through Fire HOT 2
- Use a function of iterations (e.g. epochs) as the time scale for scalars and plots HOT 2
- Pathlib Path instances in a dataclass do not get tracked by task.connect() HOT 1
- delete datasets after call get_local_copy
- report_matplotlib_figure of subplots HOT 2
- How to use Omegaconf without Hydra? HOT 1
- Scrolling log problem when using tqdm as training process bar HOT 5
- ClearML feature for integration KerasTuner is broken HOT 1
- Fix typo in docs and default sdk config HOT 1
- Executing clearml-task from cli with "-m" modules HOT 1
- Dynamic GPU/Queue Allocation for Workers in ClearML
- Add tag with Clearm-task (cli tools) 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 clearml.