cellmap_flow.dashboard.routes.models
Attributes
Functions
Get available ModelConfig subclasses and their parameter metadata |
|
Create a ModelConfig instance from user-provided parameters |
|
Get available models from Hugging Face (uses cache if available) |
|
Force refresh the Hugging Face models cache |
|
The BioImage Model Zoo's models (cached): bioimage_catalog.list_bioimage_models. |
|
Fetch the zoo's index again. |
|
Run the models the Models tab has ticked (a SubmitModels), and stop |
|
|
The inference jobs' own output, so a failure can be read here. |
Which GPU queues are open and how busy, for the queue picker. |
|
Get current server configuration. |
|
Export the dashboard's current live config (models, normalization, |
|
Update server configuration and save to cache. |
Module Contents
- cellmap_flow.dashboard.routes.models.logger
- cellmap_flow.dashboard.routes.models.models_bp
- cellmap_flow.dashboard.routes.models.get_model_config_types()
Get available ModelConfig subclasses and their parameter metadata
- cellmap_flow.dashboard.routes.models.create_model_config()
Create a ModelConfig instance from user-provided parameters
- cellmap_flow.dashboard.routes.models.get_huggingface_models()
Get available models from Hugging Face (uses cache if available)
- cellmap_flow.dashboard.routes.models.refresh_huggingface_models_route()
Force refresh the Hugging Face models cache
- cellmap_flow.dashboard.routes.models.get_bioimage_models()
The BioImage Model Zoo’s models (cached): bioimage_catalog.list_bioimage_models.
- cellmap_flow.dashboard.routes.models.refresh_bioimage_models_route()
Fetch the zoo’s index again.
- cellmap_flow.dashboard.routes.models.submit_models()
Run the models the Models tab has ticked (a SubmitModels), and stop the others: services.launch.update_run_models. A zoo model that needs a voxel size and was given none, or a Cellpose model without one, is a 400, and nothing changes.
- cellmap_flow.dashboard.routes.models.job_logs()
The inference jobs’ own output, so a failure can be read here.
Without this, a server that dies on startup or 500s on every chunk says nothing in the dashboard – the traceback is in the LSF job’s output on a cluster node, and reading it means logging in and running bpeek.
- cellmap_flow.dashboard.routes.models.gpu_queues()
Which GPU queues are open and how busy, for the queue picker.
Polled about once a minute by the models tab; the underlying LSF query is cached server-side, so this is cheap to call.
- cellmap_flow.dashboard.routes.models.get_server_config()
Get current server configuration.
- cellmap_flow.dashboard.routes.models.export_config()
Export the dashboard’s current live config (models, normalization, postprocessing, queue/charge_group) as a downloadable YAML file that can be reloaded later with cellmap_flow yaml.
- cellmap_flow.dashboard.routes.models.update_server_config()
Update server configuration and save to cache.