You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"controlnet": {
"args": [
{
"image": [
{
"image": "base64image1",
"mask": ""
},
{
"image": "base64image2",
"mask": ""
}
],
But when I run it, I get this error:
*** Error running process: C:\AI\Forge\webui\extensions-builtin\sd_forge_controlnet\scripts\controlnet.py
Traceback (most recent call last):
File "C:\AI\Forge\webui\modules\scripts.py", line 803, in process
script.process(p, *script_args)
File "C:\AI\Forge\system\python\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "C:\AI\Forge\webui\extensions-builtin\sd_forge_controlnet\scripts\controlnet.py", line 548, in process
self.process_unit_after_click_generate(p, unit, params, *args, **kwargs)
File "C:\AI\Forge\system\python\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "C:\AI\Forge\webui\extensions-builtin\sd_forge_controlnet\scripts\controlnet.py", line 298, in process_unit_after_click_generate
input_list, resize_mode = self.get_input_data(p, unit, preprocessor, h, w)
File "C:\AI\Forge\webui\extensions-builtin\sd_forge_controlnet\scripts\controlnet.py", line 206, in get_input_data
elif (unit.image['image'] < 5).all() and (unit.image['mask'] > 5).any():
TypeError: list indices must be integers or slices, not str
Any chance that there is a proper way to pass an array of base64 or images, like when using the UI "Batch_Folder" or "Batch_input"?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I’m trying to pass an array in an image in the app and I’m running into some trouble. Here’s what I’ve tried so far:
"controlnet": {
"args": [
{
"image": ["base64image1","base64image2"]
....
},
}
and
"controlnet": {
"args": [
{
"image": [
{
"image": "base64image1",
"mask": ""
},
{
"image": "base64image2",
"mask": ""
}
],
But when I run it, I get this error:
*** Error running process: C:\AI\Forge\webui\extensions-builtin\sd_forge_controlnet\scripts\controlnet.py
Traceback (most recent call last):
File "C:\AI\Forge\webui\modules\scripts.py", line 803, in process
script.process(p, *script_args)
File "C:\AI\Forge\system\python\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "C:\AI\Forge\webui\extensions-builtin\sd_forge_controlnet\scripts\controlnet.py", line 548, in process
self.process_unit_after_click_generate(p, unit, params, *args, **kwargs)
File "C:\AI\Forge\system\python\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "C:\AI\Forge\webui\extensions-builtin\sd_forge_controlnet\scripts\controlnet.py", line 298, in process_unit_after_click_generate
input_list, resize_mode = self.get_input_data(p, unit, preprocessor, h, w)
File "C:\AI\Forge\webui\extensions-builtin\sd_forge_controlnet\scripts\controlnet.py", line 206, in get_input_data
elif (unit.image['image'] < 5).all() and (unit.image['mask'] > 5).any():
TypeError: list indices must be integers or slices, not str
Any chance that there is a proper way to pass an array of base64 or images, like when using the UI "Batch_Folder" or "Batch_input"?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions