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

init text on evaluation #12

Open
DJLee68 opened this issue Aug 3, 2023 · 2 comments
Open

init text on evaluation #12

DJLee68 opened this issue Aug 3, 2023 · 2 comments

Comments

@DJLee68
Copy link

DJLee68 commented Aug 3, 2023

When I do the evaluation, I need to replace the * character with the self.init_text on this line

example["text_init"] = text.replace("*", self.init_text)

but I get an error saying that TypeError: replace() argument 2 must be str, not None
so how should I set the self.init_text?

Thanks in advance!

@okaris
Copy link

okaris commented Aug 3, 2023

It would be good to check where you initialise your dataset

data_loader = PersonalizedBase(opt.data_dir, size=256, flip_p=0.0)

like here and see if you actually set the init text. It might be initialised from the config files

@DJLee68
Copy link
Author

DJLee68 commented Aug 9, 2023

thanks!

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

No branches or pull requests

2 participants