THUDM / ImageReward

[NeurIPS 2023] ImageReward: Learning and Evaluating Human Preferences for Text-to-image Generation
Apache License 2.0
1.18k stars 65 forks source link

Bugfix variable reference before assignment #97

Closed AniAggarwal closed 2 months ago

AniAggarwal commented 2 months ago

Prevent non-valid image paths passed to ImageReward.score() resulting in a local variable pil_image referenced before assignment error.

xujz18 commented 2 months ago

Cool! Thanks a lot!