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

added params to invocation methods too #106

Merged
merged 1 commit into from
Apr 3, 2024
Merged

added params to invocation methods too #106

merged 1 commit into from
Apr 3, 2024

Conversation

lkuligin
Copy link
Collaborator

No description provided.

@lkuligin
Copy link
Collaborator Author

@jzaldi PTAL

def _create_model(self) -> ImageTextModel:
"""Builds the model object from the class attributes."""
return ImageTextModel.from_pretrained(model_name=self.model_name)
@property
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we use here functools.cached_property and get rid of the field?

Copy link
Contributor

@jzaldi jzaldi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a comment

@lkuligin lkuligin merged commit fef05cd into main Apr 3, 2024
13 checks passed
@lkuligin lkuligin deleted the image_models branch April 3, 2024 18:31
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.

None yet

2 participants