-
Notifications
You must be signed in to change notification settings - Fork 79
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
PaliGemma2 model upload support #347
Conversation
roboflow/core/version.py
Outdated
+ format | ||
+ ": %d%% [%d / %d] bytes" % (current / total * 100, current, total) | ||
f"{location} to " | ||
f"{format}: " |
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.
ruff flagged this
roboflow/deployment.py
Outdated
@@ -10,10 +10,9 @@ def is_valid_ISO8601_timestamp(ts): | |||
try: | |||
datetime.fromisoformat(ts) | |||
return True | |||
except: | |||
except: # noqa: E722 |
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.
ruff flagged this
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.
We should capture only expected exceptions.
With this bare except, you can even add syntax errors for the try block.
except: # noqa: E722 | |
except (ValueError, TypeError): |
roboflow/core/version.py
Outdated
f"{location} to " | ||
f"{format}: " |
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.
Nit:
f"{location} to " | |
f"{format}: " | |
f"{location} to {format}: " |
roboflow/deployment.py
Outdated
@@ -10,10 +10,9 @@ def is_valid_ISO8601_timestamp(ts): | |||
try: | |||
datetime.fromisoformat(ts) | |||
return True | |||
except: | |||
except: # noqa: E722 |
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.
We should capture only expected exceptions.
With this bare except, you can even add syntax errors for the try block.
except: # noqa: E722 | |
except (ValueError, TypeError): |
Description
PaliGemma2 model upload support
upload_model
command with the following model types:paligemma2-3b-pt-224
paligemma2-3b-pt-448
paligemma2-3b-pt-896
Type of change
How has this change been tested, please provide a testcase or example of how you tested the change?