Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Place a system metadata stamp on readme chart #405

Merged
merged 4 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions benchmarks/decoders/benchmark_decoders_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,11 @@ def retrieve_videos(urls_and_dest_paths):
urllib.request.urlretrieve(url, path)


def plot_data(df_data, plot_path):
def plot_data(json_data, plot_path):
plt.rcParams["font.size"] = 18

# Creating the DataFrame
df = pd.DataFrame(df_data)
df = pd.DataFrame(json_data["experiments"])

# Sorting by video, type, and frame_count
df_sorted = df.sort_values(by=["video", "type", "frame_count"])
Expand Down Expand Up @@ -518,6 +518,14 @@ def plot_data(df_data, plot_path):
for col in range(video_type_combinations[unique_videos[row]], max_combinations):
fig.delaxes(axes[row, col])

plt.gcf().text(
scotts marked this conversation as resolved.
Show resolved Hide resolved
0.005,
0.87,
"\n".join([f"{k}: {v}" for k, v in json_data["system_metadata"].items()]),
fontsize=11,
bbox=dict(facecolor="white"),
)

# Adjust layout to avoid overlap
plt.tight_layout()

Expand Down
Binary file modified benchmarks/decoders/benchmark_readme_chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading