Comments (6)
Hi. I'm unable to resolve this at the moment, but I think I could lead you in the right direction (I haven't looked at it in full). I don't know if it hooks into the current UI process through Gradio, or strictly does a POST directly to FastAPI.
I had a look in the API code, and it seems that the instance and/or args isn't passed to the API endpoint.
You would have to do an import something along the lines of:
from stable_lora.scripts.lora_webui import StableLoraScriptInstance
StableLoraScript = StableLoraScriptInstance
Here is how the script process works:
# You would use the default args (as a list) + stable_lora_ui.
stable_lora_ui = StableLoraScript.ui()
stable_lora_processor = StableLoraScriptInstance
# extra_args = args + stable_lora_ui
stable_lora_args = stable_lora_processor.process_extension_args(all_args=extra_args)
# pipe = ModelScope model (pipe.unet, pipe.text_encoder, etc.)
stable_lora_processor.process(pipe, *stable_lora_args)
The script relies on Gradio to process the args, which is why I can't give an assured fix at the moment for the API without looking into it.
from sd-webui-text2video.
I will try looking into that this week. Thank you. I want to start testing the Stable Lora stuff, but will need to find a fix for the API first.
from sd-webui-text2video.
I have the same issue while sending a request via API. I'm also looking into it.
I'm running the webui on an A40.
Here are my logs:
text2video — The model selected is: base (ModelScope-like)
text2video extension for auto1111 webui
Git commit: 8f0af8c
Starting text2video
Pipeline setup
config namespace(framework='pytorch', task='text-to-video-synthesis', model={'type': 'latent-text-to-video-synthesis', 'model_args': {'ckpt_clip': 'open_clip_pytorch_model.bin', 'ckpt_unet': 'text2video_pytorch_model.pth', 'ckpt_autoencoder': 'VQGAN_autoencoder.pth', 'max_frames': 16, 'tiny_gpu': 1}, 'model_cfg': {'unet_in_dim': 4, 'unet_dim': 320, 'unet_y_dim': 768, 'unet_context_dim': 1024, 'unet_out_dim': 4, 'unet_dim_mult': [1, 2, 4, 4], 'unet_num_heads': 8, 'unet_head_dim': 64, 'unet_res_blocks': 2, 'unet_attn_scales': [1, 0.5, 0.25], 'unet_dropout': 0.1, 'temporal_attention': 'True', 'num_timesteps': 1000, 'mean_type': 'eps', 'var_type': 'fixed_small', 'loss_type': 'mse'}}, pipeline={'type': 'latent-text-to-video-synthesis'})
Traceback (most recent call last):
File "/home/far/sd/stable-diffusion-webui/extensions/sd-webui-text2video/scripts/t2v_helpers/render.py", line 30, in run
vids_pack = process_modelscope(args_dict, args)
File "/home/far/sd/stable-diffusion-webui/extensions/sd-webui-text2video/scripts/modelscope/process_modelscope.py", line 70, in process_modelscope
stable_lora_processor.process(pipe, *stable_lora_args)
File "/home/far/sd/stable-diffusion-webui/venv/lib/python3.9/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
TypeError: process() missing 8 required positional arguments: 'lora_files_selection', 'lora_alpha', 'use_bias', 'use_linear', 'use_conv', 'use_emb', 'use_multiplier', and 'use_time'
Exception occurred: process() missing 8 required positional arguments: 'lora_files_selection', 'lora_alpha', 'use_bias', 'use_linear', 'use_conv', 'use_emb', 'use_multiplier', and 'use_time'
from sd-webui-text2video.
Any update on this. I'm unable to resolve the issue.
from sd-webui-text2video.
We are also looking for a fix for this issue. Earlier it was working for us. So, I tried using a older version of the extension. That didnt work even on the ui side.
Any date on when we can expect a fix?
from sd-webui-text2video.
Hey guys, I encountered this bug which prevented me from being able to run the extension and I determined a temporary hack to get around it. I commented out lines 68-70 in process_modelscope.py so it looks like this:
#TODO Wrap this in a list so that we can process this for future extensions.
#stable_lora_processor = StableLoraScriptInstance
#stable_lora_args = stable_lora_processor.process_extension_args(all_args=extra_args)
#stable_lora_processor.process(pipe, *stable_lora_args)
As far as I can tell this disables the processing of the LORA model which isn't ideal but seems to allow the extension to continue working. Obviously would be great to be able to keep using the LORAs module but this seems to work for the time being. Hopefully this helps someone.
from sd-webui-text2video.
Related Issues (20)
- [Bug]: ImportError: cannot import name 'auto' from 'tqdm' (G:\GitFork\stable-diffusion-webui-new\venv\lib\site-packages\tqdm\__init__.py) HOT 1
- [Bug]: ImportError: cannot import name 'auto' from 'tqdm' (G:\GitFork\stable-diffusion-webui-new\venv\lib\site-packages\tqdm\__init__.py) HOT 8
- [bug]: img2vid is broken HOT 1
- [Bug]: ModuleNotFoundError: No module named 'tqdm.auto' HOT 4
- [Bug]: Expected state_dict to be dict-like HOT 2
- [Feature Request]: VideoComposer support HOT 1
- [Bug]: Torch not compiled with CUDA enabled HOT 9
- [Bug]: ModuleNotFoundError: No module named 'numexpr' HOT 5
- [Feature Request]: implementing the new Modelscope img to video model?
- [Bug]: Tab does not appear in the extension bar at the top after installing the extension HOT 2
- [Feature Request]: implementing new Text-to-Video Show-1
- [Bug]: stuck while generating
- [Bug]: Lora error: Exception occurred: No such file or directory: HOT 1
- [Feature Request]: Support SD Video (SVD-xt)
- [Bug]: Tab issue HOT 2
- [Bug]: A1111 doenst launch after installation of this extension HOT 3
- [Bug]: No such file or directory
- [Bug]: import scripts from the "sd-webui-text2video\scripts\modelscope" conflicts with the modelscope in the env environment.
- [Bug]: When I try to run ModelScope text2video it does nothing after pressing 'Generate'. HOT 27
- [Bug]: enable_emphasis HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sd-webui-text2video.