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

AttributeError: 'NoneType' object has no attribute 'clip' #4

Closed
Crazy-CYZ opened this issue Aug 17, 2023 · 3 comments · Fixed by #13
Closed

AttributeError: 'NoneType' object has no attribute 'clip' #4

Crazy-CYZ opened this issue Aug 17, 2023 · 3 comments · Fixed by #13

Comments

@Crazy-CYZ
Copy link

Is it necessary to opt for the SDXL Refiner model? Can it be omitted from selection?

Exception in thread Thread-2 (worker):
Traceback (most recent call last):
File "threading.py", line 1016, in _bootstrap_inner
File "threading.py", line 953, in run
File "E:\Fooocus_win64_1-1-10\moonride-main\Fooocus\modules\async_worker.py", line 115, in worker
handler(task)
File "E:\Fooocus_win64_1-1-10\moonride-main\Fooocus\modules\async_worker.py", line 73, in handler
imgs = pipeline.process(p_txt, n_txt, steps, switch, width, height, seed, sampler_name, cfg, base_clip_skip, refiner_clip_skip, callback=callback)
File "E:\Fooocus_win64_1-1-10\python_embeded\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "E:\Fooocus_win64_1-1-10\moonride-main\Fooocus\modules\default_pipeline.py", line 127, in process
xl_refiner.clip.clip_layer(refiner_clip_skip)
AttributeError: 'NoneType' object has no attribute 'clip'

@barepixels
Copy link

I notice same error, Fooocus won't work without Refinner choosen. But I think you need to report at https://github.com/lllyasviel/Fooocus/issues

@MoonRide303
Copy link
Owner

@xiaoyoucheng Thx for the fix, merged.

@MoonRide303
Copy link
Owner

@barepixels It's MRE-specific problem - vanilla doesn't allow to change CLIP skip, so no need to report it there.

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

Successfully merging a pull request may close this issue.

3 participants