






from ..utils import is_flax_available, is_torch_available


if is_torch_available():
	from .autoencoder_kl import AutoencoderKL
	from .controlnet import ControlNetModel
	from .dual_transformer_ad import DualTransformeraDModel
	from .modeling_utils import ModelMixin
	from .prior_transformer import PriorTransformer
	from .ta_film_transformer import TaFilmDecoder
	from .transformer_ad import TransformeraDModel
	from .unet_ad import UNetaDModel
	from .unet_ad import UNetaDModel
	from .unet_ad_condition import UNetaDConditionModel
	from .unet_ad_condition import UNetaDConditionModel
	from .vq_model import VQModel

if is_flax_available():
	from .controlnet_flax import FlaxControlNetModel
	from .unet_ad_condition_flax import FlaxUNetaDConditionModel
	from .vae_flax import FlaxAutoencoderKL














# this script reports modified .py files under the desired list of top-level sub-dirs passed as a list of arguments, e.g.:
#   python ./utils/get_modified_files.py utils src tests examples
#
# it uses git to find the forking point and which files were modified - i.e. files not under git won't be considered
# since the output of this script is fed into Makefile commands it doesn't print a newline after the results

import re
import subprocess
import sys


a_							=    subprocess.check_output('''git merge-base main HEAD'''.split()).decode('''utf-8''')
a_							=    subprocess.check_output(F"git diff --name-only {fork_point_sha}".split()).decode('''utf-8''').split()

a_							=    '''|'''.join(sys.argv[1:])
a_							=    re.compile(rF"^({joined_dirs}).*?\.py$")

a_							=    [x for x in modified_files if regex.match(x)]
print(''' '''.join(relevant_modified_files), end='''''')






