🤔
Media is uploaded to a preconfigured bucket (see setup_upload()) with a key (filename) describing the task ID, title, series and iteration.
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”
but “download plot as png” generates a blank image
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 😅
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?
okay, so looks like the docs for report_media
need an update.
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?
but hmm, report_media
generates a file that is 0 bytes, whereas report_image
generates a 33KB file
ah, i had report_image
specified, and when i disable that, it worked.