Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduced factory method for model providers #25

Merged
merged 3 commits into from
Feb 22, 2024
Merged

Conversation

Jim-Encord
Copy link
Contributor

Some of the models use OpenCLIP as opposed to closed CLIP as such they are loaded differently and may embed slightly differently.
I have included a comment about not being able to type certain variables. Would appreciate some guidance on alleviating this. Also do try seeing if you can break it.

@Jim-Encord
Copy link
Contributor Author

@frederik-encord Using the types in the CLIP model causes
ImportError: cannot import name 'Embeddings' from partially initialized module 'src.common.base' (most likely due to a circular import) (/Users/encord/Documents/cord/text-to-image-eval/src/common/base.py)
hence why I only had it as a comment

…hs (#26)

Now, if you run `poetry install` you can successively do
```bash
$ clip-eval list
```
instead of
```bash
$ PYTHONPATH=$PWD python src/cli.py list
```

I also refactored all files to import from `clip_eval` instead of src
and other weird import paths.
@Jim-Encord Jim-Encord merged commit 23b5533 into main Feb 22, 2024
1 check passed
@Jim-Encord Jim-Encord deleted the jb/factory_models branch February 22, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants