Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
I’M Having Some Trouble With

I’m having some trouble with Task.logger.report_media . i’m trying to report a matplotlib figure that i’ve packed into a BytesIO object (because 2D histograms appear to cause the auto figure reporting lots of grief). but when i look in the “debug samples” tab, I can select the different titles, but every one of them is just a blank, white image. here’s the meat of what i’m doing:

        buffer = BytesIO()
        fig.savefig(
            buffer,
            format="jpg",
            bbox_inches="tight",
        )
        self.pl_module.clearml_task.logger.report_media(
            f"{self.dataloader_name}_{plot.name}",
            series=f"{self.dataloader_name}",
            stream=buffer,
            file_extension="jpg",
        )

not sure what could be happening because I think i’m going by the book.

clearml version: ‘1.9.1rc0’
server version: WebApp: 1.9.1-312 • Server: 1.9.1-312 • API: 2.23

  
  
Posted one year ago
Votes Newest

Answers 10


👍

  
  
Posted one year ago

okay, looks like my main issue was the errant plt.show ( 😩 ). report_media works fine without specifying set_default_upload_destination when that’s been removed 😅

  
  
Posted one year ago

but “download plot as png” generates a blank image

  
  
Posted one year ago

ah, i had report_image specified, and when i disable that, it worked.

  
  
Posted one year ago

ugh, turns out i had a plt.show() in there, that was causing blank figs.

that said, report_matplotlib_figure did not end up putting anything into “plots” or “debug samples”

  
  
Posted one year ago

but hmm, report_media generates a file that is 0 bytes, whereas report_image generates a 33KB file

  
  
Posted one year ago

okay, so if i set set_default_upload_destination as URI that’s local to the computer running the task (and the server):

  • the server is “unable to load the image”—not surprising because the filesystem URI was not mounted into the container
  • the files are present at the expected location on the local filesystem, but they are…blank! all white.that tells me that report_media might have been successful, but there’s some issue …encoding the data to a jpeg?
  
  
Posted one year ago

but now i’m confused about why set_default_upload_destination is different from output_uri . i kind of get it? but wouldn’t that be a safe default?

  
  
Posted one year ago

okay, so looks like the docs for report_media need an update.

  
  
Posted one year ago

🤔

Media is uploaded to a preconfigured bucket (see setup_upload()) with a key (filename) describing the task ID, title, series and iteration.

  
  
Posted one year ago
1K Views
10 Answers
one year ago
one year ago
Tags