google / compare_gan

Compare GAN code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

awweide opened this issue · comments

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.

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

commented

Also just got this. Thanks for making the issue.

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