| |
|
| | import logging
|
| | from pkg_resources import get_distribution, DistributionNotFound
|
| |
|
| |
|
| | logger = logging.getLogger(__name__)
|
| | handler = logging.StreamHandler()
|
| | formatter = logging.Formatter('%(asctime)s | %(name)s | %(levelname)s | %(message)s')
|
| | handler.setFormatter(formatter)
|
| | logger.addHandler(handler)
|
| | logger.setLevel(logging.INFO)
|
| |
|
| |
|
| | from .models import MedicalVAE, MedicalTextEncoder, DiffusionUNet, DiffusionModel
|
| | from .inference import XrayGenerator
|
| |
|
| |
|
| | try:
|
| | __version__ = get_distribution("xray_generator").version
|
| | except DistributionNotFound:
|
| |
|
| | __version__ = "0.1.0-dev"
|
| |
|
| | __all__ = [
|
| | 'MedicalVAE',
|
| | 'MedicalTextEncoder',
|
| | 'DiffusionUNet',
|
| | 'DiffusionModel',
|
| | 'XrayGenerator'
|
| | ] |