-
Notifications
You must be signed in to change notification settings - Fork 66
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
feat: adopt hubble sdk on notebook login #576
Merged
Merged
Changes from 23 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
944e60c
feat: adopt hubble sdk on notebook login
bwanglzu 6976db9
docs: add documentation
bwanglzu 7736585
chore: add changelog
bwanglzu 4f83d3d
docs: update docstring with notebook login
bwanglzu d83690f
docs: update docstring
bwanglzu f1b37de
docs: update docstring
bwanglzu 4dabbd7
docs: update docstring
bwanglzu 878d851
docs: update docstring
bwanglzu 852cd38
docs: update docstring
bwanglzu 91247fb
docs: update docstring
bwanglzu efd43cc
docs: update docstring
bwanglzu 20ebad0
docs: update login success message
bwanglzu 56fdaf4
Merge branch 'feat-notebook-login' of https://github.com/jina-ai/fine…
bwanglzu d59dfce
docs: upper case google and jupyter
bwanglzu 517079a
docs: use upper case colab
bwanglzu a009e62
docs: fix tll training data prepare section
bwanglzu 0a1d3c3
chore: add changelog
bwanglzu 3901a1b
chore: freeze hubble sdk version
bwanglzu 2e10245
fix: add force option to login
bwanglzu 83c1e93
feat: init state at post init
bwanglzu d85e379
feat: remove unused code
bwanglzu 1df4cc0
docs: fix dataset name in clip example
bwanglzu f9f1904
feat: add force to login
bwanglzu d4126e7
docs: fix clip training data name
bwanglzu 6317f8c
test: add force to mocker
bwanglzu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,15 +18,27 @@ def __init__(self): | |
self._client = None | ||
self._default_experiment = None | ||
|
||
def login(self): | ||
def login(self, force: bool = False): | ||
"""Login to Hubble account, initialize a client object | ||
and create a default experiment. | ||
|
||
:param force: If set to true, overwrite token and re-login. | ||
|
||
Note: Calling `login` is necessary for using finetuner. | ||
""" | ||
hubble.login() | ||
hubble.login(force=force) | ||
self._init_state() | ||
|
||
def notebook_login(self, force: bool = False): | ||
"""Log in to Hubble account, initialize a client object | ||
and create a default experiment. | ||
|
||
:param force: If set to true, overwrite token and re-login. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add the force parameter also to the login function. It also exists there. |
||
|
||
Note: This works for Jupyter notebook, Google Colab.. | ||
""" | ||
hubble.notebook_login(force=force, post_success=self._init_state) | ||
|
||
def connect(self): | ||
"""Connects finetuner to Hubble without logging in again. | ||
Use this function, if you are already logged in. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the train data are
fashion-train-data-clip
. Update the snippet as well