-
Notifications
You must be signed in to change notification settings - Fork 450
Add GEdit-Bench and ImgEdit-Bench for Bagel Model #923
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
base: main
Are you sure you want to change the base?
Conversation
| # Ensure dataset is a DatasetDict so downstream logic that expects multiple splits works. | ||
| if not isinstance(self.dataset, datasets.DatasetDict): | ||
| split_name = self.config.test_split or self.config.validation_split or self.config.training_split or "train" | ||
| self.dataset = datasets.DatasetDict({split_name: self.dataset}) | ||
|
|
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.
This is a too ground breaking changes. Might break too much
| try: | ||
| self.dataset_no_image = self.dataset.copy() | ||
| except AttributeError: | ||
| self.dataset_no_image = datasets.DatasetDict({k: v for k, v in self.dataset.items()}) |
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.
Might be breaking changes also. Consider not to use 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.
To be honest, edit and gen doesn't seems should be fixed. It simply depends on the input.
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.
No need to put the entire source code into here.
kcz358
left a comment
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.
Too much breaking changes here in this PR. I would recommend to clean up and re-open a new one later.
Add GEdit-Bench and ImgEdit-Bench Eval Task and Modify Bagel model for inference

GEdit-Bench Results:
ImgEdit-Bench Results:
