question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Aligning text and images

See original GitHub issue

Hi, I am trying to display text and images side by side for a particular epoch run of the model. Currently, they are not being aligned; texts collate together while images are shown else where.

vis = visdom.Visdom()
vis.images(img_vis.cpu().detach().numpy(), nrow=4, opts=dict(title='original'))
vis.text(raw_text, opts=dict(title='text'))
  • Is it possible to align them in some kind of frame while visualizing.
  • Also, the text is in a list. But, while displaying, the text comes out to be comma separated and not as a list.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
JackUrbcommented, Jul 10, 2019

Ah I added context above in an edit: The input to the text function should be a string. If you pass something that isn’t a string the behavior isn’t well defined.

If you want you can use html formatting however you see fit. (You might want to make a helper that produces an html string for a bulleted list from your string list)

0reactions
shubhamagarwal92commented, Feb 3, 2020

@satwikkottur sorry for the late reply. Somehow I missed this. In the end I used jupyter notebooks for my work. Did you find a nice clean solution?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vertically align text next to an image? - Stack Overflow
To align text vertically center by using in flex using align-items:center; if you want to align text horizontally center by using in flex...
Read more >
Align pictures, shapes, WordArt and other objects in Word
To align a picture, select Picture Format or Picture Tools > Format. · To align a shape, text box, or WordArt, select Shape...
Read more >
Align and float images on your website with HTML and CSS
Aligned images : using image align, you can choose a left, center, or right placement. The text doesn't flow around the image but...
Read more >
How to Vertically Align a Text Next to the Image - W3docs
A common question is how to align text next to an image vertically? Read this snippet and learn to do it step by...
Read more >
How to Vertically Align Text Next to an Image using CSS
In this article, we will see how to align text next to an image using various methods. Approaches: There are two methods are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found