google / compare_gan

Compare GAN code.
Apache License 2.0
1.82k stars 319 forks source link

last_config_step : type_error <= not supported 'int' and 'str' #30

Open awweide opened 5 years ago

awweide commented 5 years ago

Trying to run the code with an example config and the described command line options, I get the following error when doing eval:

last_config_step = sorted([s for s in config_steps if s <= step])[-1] TypeError: '<=' not supported between instances of 'int' and 'str'

Adding in an explicit casting int(step) fixed the problem. I assume this is a problem with my versions/libraries and not the code, but I can't make any sense of it.

Marvin182 commented 5 years ago

Thanks for reporting. This is a known issue and will be fixed in a future release. I will leave this open for other users.

jeffling commented 5 years ago

Also just got this. Thanks for making the issue.

zengsn commented 4 years ago

last_config_step = sorted([s for s in config_steps if s <= int(step)])[-1]