gmastrapas
commited on
Commit
·
7f069e2
1
Parent(s):
ab3363e
fix: do all relative imports at the top level
Browse files- modeling_clip.py +3 -0
modeling_clip.py
CHANGED
@@ -39,6 +39,9 @@ except ImportError:
|
|
39 |
from .configuration_clip import JinaCLIPConfig, JinaCLIPTextConfig, JinaCLIPVisionConfig
|
40 |
from .eva_model import EVAVisionTransformer
|
41 |
from .hf_model import HFTextEncoder
|
|
|
|
|
|
|
42 |
|
43 |
logger = logging.get_logger(__name__)
|
44 |
|
|
|
39 |
from .configuration_clip import JinaCLIPConfig, JinaCLIPTextConfig, JinaCLIPVisionConfig
|
40 |
from .eva_model import EVAVisionTransformer
|
41 |
from .hf_model import HFTextEncoder
|
42 |
+
# needed for HF to correctly import in cache
|
43 |
+
from .rope_embeddings import VisionRotaryEmbeddingFast # noqa: F401
|
44 |
+
from .transform import OPENAI_DATASET_MEAN, OPENAI_DATASET_STD, image_transform # noqa: F401
|
45 |
|
46 |
logger = logging.get_logger(__name__)
|
47 |
|