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

Added memory_usage_factor, custom_operations, and optimizations properties to MuseModelConfig to fix the 'MuseModelConfig' object has no attribute 'custom_operations' #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MoJIeAIGC
Copy link

@MoJIeAIGC MoJIeAIGC commented Oct 18, 2024

https://github.com/kijai/ComfyUI-MuseTalk-KJ/issues/11
Added memory_usage_factor, custom_operations, and optimizations properties to MuseModelConfig to fix the 'MuseModelConfig' object has no attribute 'custom_operations' error. This allows for smooth operation in the latest version of ComfyUI. However, it's clear that this is a simple fix, and more comprehensive optimizations will require future updates.

I've added the missing memory_usage_factor, custom_operations, and optimizations attributes to the MuseModelConfig class. This change addresses the error that was occurring due to the absence of these properties, which was preventing the code from running successfully in the latest version of ComfyUI.

With these properties in place, the BaseModel class can now instantiate without throwing an AttributeError. However, I've kept the changes minimal to ensure compatibility with the existing codebase. The custom_operations attribute is set to None by default, and the optimizations attribute is initialized as an empty dictionary.

While this patch ensures that the project can be built and run without immediate issues, it's important to note that these are stopgap measures. For long-term sustainability and performance, a more thorough review and optimization of the configuration and model architecture will be necessary. I plan to work on this in subsequent updates to ensure that the codebase is not only error-free but also optimized for performance and scalability.

Please review the changes, and let me know if you have any suggestions or require further modifications. Thank you for considering this pull request.

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 this pull request may close these issues.

1 participant