Major Features: • Advanced topological sorting algorithm with cycle detection and resolution • Intelligent pipeline optimization with parallelization analysis • Critical path analysis and performance metrics calculation • Comprehensive .mflow file converter for seamless UI-to-API integration • Complete modular UI framework with node-based pipeline editor • Enhanced model node properties (scpu_fw_path, ncpu_fw_path) • Professional output formatting without emoji decorations Technical Improvements: • Graph theory algorithms (DFS, BFS, topological sort) • Automatic dependency resolution and conflict prevention • Multi-criteria pipeline optimization • Real-time stage count calculation and validation • Comprehensive configuration validation and error handling • Modular architecture with clean separation of concerns New Components: • MFlow converter with topology analysis (core/functions/mflow_converter.py) • Complete node system with exact property matching • Pipeline editor with visual node connections • Performance estimation and dongle management panels • Comprehensive test suite and demonstration scripts 🤖 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
27 lines
851 B
Python
27 lines
851 B
Python
"""
|
|
Reusable UI components and widgets for the Cluster4NPU application.
|
|
|
|
This module contains reusable UI components that can be used across different
|
|
parts of the application, promoting consistency and code reuse.
|
|
|
|
Available Components:
|
|
- NodePalette: Node template selector with drag-and-drop (future)
|
|
- CustomPropertiesWidget: Dynamic property editor (future)
|
|
- CommonWidgets: Shared UI elements and utilities (future)
|
|
|
|
Usage:
|
|
from cluster4npu_ui.ui.components import NodePalette, CustomPropertiesWidget
|
|
|
|
palette = NodePalette(graph)
|
|
properties = CustomPropertiesWidget(graph)
|
|
"""
|
|
|
|
# Import components as they are implemented
|
|
# from .node_palette import NodePalette
|
|
# from .properties_widget import CustomPropertiesWidget
|
|
# from .common_widgets import *
|
|
|
|
__all__ = [
|
|
# "NodePalette",
|
|
# "CustomPropertiesWidget"
|
|
] |