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

Update script for recent Forge Architecture changes #29

Merged
merged 3 commits into from
Sep 26, 2024

Conversation

wcole3
Copy link
Contributor

@wcole3 wcole3 commented Aug 25, 2024

This PR makes changes needed to get the extension running in Forge after the recent architectural changes in that framework including the update to Gradio 4. This branch does not include changes to allow the extension to work with Flux based models.

I've tried to maintain compatibility with auto1111, but I have not tested these changes in that repo.

I'm happy to close this if you're not interested or have better ideas for updates, but I figured I'd post the branch in case people are interested in using this.

Possibly related to #27 #28

@SecretBeast669
Copy link

Thank you so much! I can finally use this extension on new Forge.

@boredafk
Copy link

@wcole3
Copy link
Contributor Author

wcole3 commented Sep 14, 2024

Is there something in that extension thaat isn;t available in the Forge builtin ipadapter extension?

@boredafk
Copy link

It's Anime. and It can apply random styles, Not just ones from images

@wcole3
Copy link
Contributor Author

wcole3 commented Sep 14, 2024

See PR please let me know if you encounter errors

@boredafk
Copy link

*** Error calling: /home/studio-lab-user/forge/extensions/sd-webui-cd-tuner/scripts/cdtuner.py/ui
Traceback (most recent call last):
File "/home/studio-lab-user/forge/modules/scripts.py", line 545, in wrap_call
return func(*args, **kwargs)
File "/home/studio-lab-user/forge/extensions/sd-webui-cd-tuner/scripts/cdtuner.py", line 88, in ui
refresh_d1 = ToolButton(value=resetsymbol)
File "/home/studio-lab-user/forge/extensions/sd-webui-cd-tuner/scripts/cdtuner.py", line 38, in init
super().init(variant="tool",
File "/home/studio-lab-user/forge/modules/gradio_extensions.py", line 147, in repaired_init
original(self, *args, **fixed_kwargs)
File "/tmp/venv/lib/python3.10/site-packages/gradio/component_meta.py", line 163, in wrapper
return fn(self, **kwargs)
File "/tmp/venv/lib/python3.10/site-packages/gradio/components/button.py", line 61, in init
super().init(
File "/home/studio-lab-user/forge/modules/gradio_extensions.py", line 36, in IOComponent_init
res = original_IOComponent_init(self, *args, **kwargs)
File "/tmp/venv/lib/python3.10/site-packages/gradio/component_meta.py", line 163, in wrapper
return fn(self, **kwargs)
File "/tmp/venv/lib/python3.10/site-packages/gradio/components/base.py", line 229, in init
self.component_class_id = self.class.get_component_class_id()
File "/tmp/venv/lib/python3.10/site-packages/gradio/components/base.py", line 118, in get_component_class_id
module_path = sys.modules[module_name].file
KeyError: 'cdtuner.py'


*** Error calling: /home/studio-lab-user/forge/extensions/sd-webui-cd-tuner/scripts/cdtuner.py/ui
Traceback (most recent call last):
File "/home/studio-lab-user/forge/modules/scripts.py", line 545, in wrap_call
return func(*args, **kwargs)
File "/home/studio-lab-user/forge/extensions/sd-webui-cd-tuner/scripts/cdtuner.py", line 88, in ui
refresh_d1 = ToolButton(value=resetsymbol)
File "/home/studio-lab-user/forge/extensions/sd-webui-cd-tuner/scripts/cdtuner.py", line 38, in init
super().init(variant="tool",
File "/home/studio-lab-user/forge/modules/gradio_extensions.py", line 147, in repaired_init
original(self, *args, **fixed_kwargs)
File "/tmp/venv/lib/python3.10/site-packages/gradio/component_meta.py", line 163, in wrapper
return fn(self, **kwargs)
File "/tmp/venv/lib/python3.10/site-packages/gradio/components/button.py", line 61, in init
super().init(
File "/home/studio-lab-user/forge/modules/gradio_extensions.py", line 36, in IOComponent_init
res = original_IOComponent_init(self, *args, **kwargs)
File "/tmp/venv/lib/python3.10/site-packages/gradio/component_meta.py", line 163, in wrapper
return fn(self, **kwargs)
File "/tmp/venv/lib/python3.10/site-packages/gradio/components/base.py", line 229, in init
self.component_class_id = self.class.get_component_class_id()
File "/tmp/venv/lib/python3.10/site-packages/gradio/components/base.py", line 118, in get_component_class_id
module_path = sys.modules[module_name].file
KeyError: 'cdtuner.py' cd tuner

@wcole3
Copy link
Contributor Author

wcole3 commented Sep 15, 2024

You have not checked out the correct branch

@hako-mikan hako-mikan changed the base branch from main to dev September 26, 2024 15:25
@hako-mikan hako-mikan merged commit 9559588 into hako-mikan:dev Sep 26, 2024
@hako-mikan
Copy link
Owner

Thanks!!

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.

4 participants