tensorflow / model-card-toolkit

A toolkit that streamlines and automates the generation of model cards
https://www.tensorflow.org/responsible_ai/model_card_toolkit/guide
Apache License 2.0
418 stars 85 forks source link

Model card generation fails due to image too large #282

Open hanneshapke opened 1 year ago

hanneshapke commented 1 year ago

Expected Behavior

Model card generation fails due to the histogram to large.

Actual Behavior

_draw_histogram calls figure_to_base64str. The method calls fig.savefig(buf, bbox_inches='tight', format='png')

The save fails with

ValueError: Image size of 6440035x455 pixels is too large. It must be less than 2^16 in each direction.
codesue commented 1 year ago

Thanks for tracking this here, @hanneshapke!

Note: This was originally reported in the sig-tfx-addons Google Group. We're awaiting error logs and a reproducible example.

codesue commented 1 year ago

Still waiting on error logs and a reproducible example before this can be picked up.