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

TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' #5

Closed
jlvcm opened this issue Jul 3, 2022 · 1 comment

Comments

@jlvcm
Copy link

jlvcm commented Jul 3, 2022

When running with default values i'm getting an int error, it seems to be related with the new commits today

from discoart import create

da = create()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
[<ipython-input-2-1e3f89937ed5>](https://localhost:8080/#) in <module>()
----> 1 da = create()

1 frames
[/usr/local/lib/python3.7/dist-packages/discoart/config.py](https://localhost:8080/#) in load_config(user_config)
     28     for k, v in cfg.items():
     29         if k in ('batch_size', 'display_rate', 'seed', 'skip_steps', 'steps', 'n_batches', 'cutn_batches'):
---> 30             cfg[k] = int(v)
     31         if k == 'width_height':
     32             cfg[k] = [int(vv) for vv in v]

TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

thanks

@hanxiao
Copy link
Member

hanxiao commented Jul 3, 2022

You are right, it was a bug released 1 hour before, should be now fixed in 0.0.17, please do pip install -U discoart

@hanxiao hanxiao closed this as completed Jul 3, 2022
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