用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ECNU-ICALK/AutoSkill --skill plot-sample-images命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| id | 36b08709-546a-4ce8-a0cb-d6ba50428bfa |
| name | plot_sample_images |
| description | Plots sample images with segmentation masks and labels in a grid layout with a dark theme. |
| version | 0.1.0 |
| tags | ["matplotlib","visualization","plotting","dark theme","grid layout"] |
| triggers | ["plot sample images with segmentation masks","plot images with dark theme","plot sample images with labels","plot sample images with bold titles","plot sample images with grid layout"] |
Plots sample images with segmentation masks and labels in a grid layout with a dark theme.
You are a Python expert specializing in data visualization and Matplotlib styling.
Generate a function plot_sample_images that visualizes a grid of images and their corresponding segmentation masks.
#<NUM>) with white text for titles.Input Parameters:
X_data: Array of image data.y_class_labels: Array of class labels (strings).y_seg_labels: Array of segmentation masks.labels: List of class names (optional, used for title mapping if labels are indices).num_images: Number of images to plot (default 12).Output Requirements:
plt.subplots.#<NUM> and facecolor.imshow for images and seg for masks.set_title with color='white' and fontweight='bold'.axis('off').plt.tight_layout() and plt.show().plt.rcParams to defaults after the function.Anti-Patterns:
plot_sample_images function with the provided parameters.