register_modality#
- torch_brain.registry.register_modality(name, **kwargs)[source]#
Register a new modality specification in the global registry.
- Parameters:
- Returns:
Unique numeric ID assigned to this modality
- Return type:
- Raises:
ValueError – If a modality with the given name already exists