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

Model "NoneType" #40

Open
caleb-severn opened this issue Mar 16, 2021 · 4 comments
Open

Model "NoneType" #40

caleb-severn opened this issue Mar 16, 2021 · 4 comments

Comments

@caleb-severn
Copy link

Sorry if I'm missing something really obvious. I get this error when running interactive.py

File "interactive.py", line 644, in
setup_model()
File "interactive.py", line 153, in setup_model
load_components(class_name, inst)
File "interactive.py", line 57, in load_components
dump_name = get_or_compute(config, inst)
File "C:\Users\caleb\ganspace-master\decomposition.py", line 368, in get_or_compute
return _compute(submit_config, config, model, force_recompute)
File "C:\Users\caleb\ganspace-master\decomposition.py", line 387, in compute
config.output_class.replace(' ', '
'),
AttributeError: 'NoneType' object has no attribute 'replace'

Looking into it, the config.output_class is being returned as a Nonetype? I tried to just forcing it to read it as a string but that didn't fix it, so there seems to be some underlying output_class error?

All the dependencies installed correctly in its environment, and everything else seems to run fine!

@kunwar-vikrant
Copy link

facing the same issue!

@kunwar-vikrant
Copy link

you can replace output types as one of #[ffhq, celebahq, bedrooms, cars, cats, vases, wikiart, fireworks, abstract, anime, ukiyo-e] in config.py and then run , it will work

@caleb-severn
Copy link
Author

you can replace output types as one of #[ffhq, celebahq, bedrooms, cars, cats, vases, wikiart, fireworks, abstract, anime, ukiyo-e] in config.py and then run , it will work

Sorry in Config the only thing IM seeing that has output_class is line 58 dest = 'output_class'. Are you saying put [ffhq, celebahq, bedrooms, cars, cats, vases, wikiart, fireworks, abstract, anime, ukiyo-e] in default? Or in type = ? Sorry I'm not very good at this!

@kunwar-vikrant
Copy link

@caleb-severn if you go to config.py line #58 -
parser.add_argument('--class', dest='output_class', type=str, default=None, help='Output class to generate (BigGAN: Imagenet, ProGAN: LSUN)')

Here type parameter is set as none .....you can replace it with one of the values in the list [ffhq, celebahq, bedrooms, cars, cats, vases, wikiart, fireworks, abstract, anime, ukiyo-e] like for eg. you can set type = ffhq.

PS:If you are running windows 10 , try this repo : https://github.com/justinjohn0306/StyleFlow-Windows-10

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