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

Generate is Disabled When Opening a Blend File #729

Closed
NullSenseStudio opened this issue Nov 6, 2023 · 0 comments · Fixed by #730
Closed

Generate is Disabled When Opening a Blend File #729

NullSenseStudio opened this issue Nov 6, 2023 · 0 comments · Fixed by #730
Labels
bug Something isn't working

Comments

@NullSenseStudio
Copy link
Collaborator

Description

Generating any image is disabled when opening a .blend file, starting Blender directly and then using its File > Open... alternatively does not. Releasing the generator doesn't help.

The console gets spammed with 'str' object has no attribute 'model_type'. I've tracked this down to

except Exception as e:
print(e)

This actual error is occurring here
def validate(self, arguments: GenerationArguments):
model = model_lookup.get(arguments.model.id)
if model is None:
raise FixItError("No model selected.", FixItError.ChangeProperty("model"))
else:
if not model.model_type.matches_task(arguments.task):

For some reason model_lookup is not being updated and just returns the model id string.

It can be made to update by installing another model: either downloading, importing, or linking.

Steps to Reproduce

  1. open Blender and save a new .blend file
  2. close Blender
  3. open .blend file from file explorer (NOT from within Blender File > Open... / File > Open Recent)

Expected Behavior

Generate button to not be disabled.

Addon Version

Windows (CUDA)

GPU

NVIDIA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant