Skip to content

AttributeError: 'list' object has no attribute '__module__'. #7866

Closed Answered by asomoza
Forshining asked this question in Q&A
Discussion options

You must be logged in to vote

yeah, more than inappropriate, is that all the args of the __init__ are processed as modules when you inherit from a pipeline.

So don't use the __init__ to set variables that you need, do this in the __call__ method, you can learn from examples in the community pipelines, like this one.

Also better to load the pipeline with from_pretrained instead, that way you get all the additional features that diffusers gives if you need them.

So for example:

pipeline = LocalDDIMPipeline.from_pretrained("path_to_model", scheduler=your_scheduler)

If you're using the scheduler that's with the model, you don't need to provide the scheduler.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
4 replies
@Forshining
Comment options

@Forshining
Comment options

@tolgacangoz
Comment options

@Forshining
Comment options

Comment options

You must be logged in to vote
4 replies
@Forshining
Comment options

@Forshining
Comment options

@asomoza
Comment options

Answer selected by Forshining
@Forshining
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants