Skip to content

Conversation

@ActiveChooN
Copy link

@ActiveChooN ActiveChooN commented Dec 17, 2025

📝 Description

The train model dialog was updated to use the new model metadata and updated UX.

image

✨ Changes

Select what type of change your PR is:

  • 🚀 New feature (non-breaking change which adds functionality)
  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • 🔄 Refactor (non-breaking change which refactors the code base)
  • ⚡ Performance improvements
  • 🎨 Style changes (code style/formatting)
  • 🧪 Tests (adding/modifying tests)
  • 📚 Documentation update
  • 📦 Build system changes
  • 🚧 CI/CD configuration
  • 🔧 Chore (general maintenance)
  • 🔒 Security update
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)

✅ Checklist

Before you submit your pull request, please make sure you have completed the following steps:

  • 📚 I have made the necessary updates to the documentation (if applicable).
  • 🧪 I have written tests that support my changes and prove that my fix is effective or my feature works (if applicable).
  • 🏷️ My PR title follows conventional commit format.

For more information about code review checklists, see the Code Review Checklist.

Copilot AI review requested due to automatic review settings December 17, 2025 08:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reworks the train model dialog to use new model metadata and updated UX, including the addition of a max epochs field. The changes modernize the dialog's appearance and improve the model selection experience by introducing recommended models, enhanced model information display, and device selection improvements.

Key changes:

  • Introduced model metadata including families, performance metrics, and recommendations
  • Added max epochs configuration field with contextual help
  • Refactored device selection into a dedicated component with improved UX

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
application/ui/src/features/inspect/train-model/types.ts Defines TypeScript types for model families, performance metrics, and trainable models with display name mappings
application/ui/src/features/inspect/train-model/training-device-picker.component.tsx New component for device selection with custom hook for device management and fallback UI for no devices
application/ui/src/features/inspect/train-model/trainable-model-list-box.component.tsx Refactored to display models in cards with show more/less functionality for recommended vs other models
application/ui/src/features/inspect/train-model/trainable-model-card.component.tsx New card component displaying model details including name, family tags, metrics, and documentation links
application/ui/src/features/inspect/train-model/model-tag.component.tsx Simple tag component for displaying model categories with variant styling
application/ui/src/features/inspect/train-model/model-metrics-display.component.tsx Component displaying training/inference speed metrics and parameter count with gauge icons
application/ui/src/features/inspect/train-model/train-model.module.scss Updated styles for the new card-based model selection UI with tags and improved visual hierarchy
application/ui/src/features/inspect/train-model/train-model-dialog.component.tsx Updated dialog to include max epochs field and integrate new device picker component
application/ui/src/features/inspect/train-model/utils/device-metadata.test.ts Tests for device preference selection logic
application/ui/src/features/inspect/train-model/trainable-model-list-box.test.tsx Tests for model filtering and show more/less functionality
application/ui/src/features/inspect/train-model/train-model-dialog.test.tsx Integration tests for dialog form validation and submission
application/ui/mocks/mock-trainable-models.ts Mock data factory for trainable models used in tests

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…e-picker.component.tsx

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Dmitry Kalinin <[email protected]>
Copilot AI review requested due to automatic review settings December 17, 2025 12:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Dmitry Kalinin <[email protected]>
docs_url: 'https://anomalib.readthedocs.io/',
recommended: true,
parameters: 27,
metrics: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the feedback, can we remove the metrics?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants