-
Notifications
You must be signed in to change notification settings - Fork 0
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
Inference callback #70
Conversation
…preview add image-preview to sdxl
…ith-image-preview Revert "add image-preview to sdxl"
@@ -182,6 +181,15 @@ class Inference: | |||
def __init__(self, spice) -> None: | |||
self.spice = spice | |||
self.device = self.spice.get_device() | |||
self.pipe = None | |||
self.inference_job_id = None |
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 need to insure that this is cleared out on error and completed states. the Inference class is typically NOT recreated
self.inference_job_id = None | |
self.inference_job_id = None |
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.
it is typically better to pass this type of variable that is not used on class instantiate to the function call itself.
callback_for_stable_diffision should probably take this as an input instead of setting it on the class
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.
unfortunately, the callback cannot take inference_job_id as an input since the method signature is fixed. if you are concerned that the inference class can have multiple inference job id's associated with it, I can create a new InferenceTask class that deals with inference jobs one at a time.
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.
review feedback
No description provided.