brycedrennan/imaginAIry

Error: Invalid value for '--control-mode': 'details' is not one of '', 'canny', 'depth', 'normal', 'hed', 'openpose'.

Closed this issue · 8 comments

mode "Details" seems gone missing - worked until last week?

Version 10.1.1

Edit is gone as well :(

Traceback (most recent call last):
File "/usr/local/bin/imagine", line 6, in
cmds.imagine_cmd()
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/imaginairy/cmds.py", line 411, in imagine_cmd
return _imagine_cmd(
File "/usr/local/lib/python3.10/site-packages/imaginairy/cmds.py", line 793, in _imagine_cmd
filenames = imagine_image_files(
File "/usr/local/lib/python3.10/site-packages/imaginairy/api.py", line 62, in imagine_image_files
for result in imagine(
File "/usr/local/lib/python3.10/site-packages/imaginairy/api.py", line 174, in imagine
result = _generate_single_image(
File "/usr/local/lib/python3.10/site-packages/imaginairy/api.py", line 419, in _generate_single_image
raise RuntimeError("Control image must be in [0, 1]")
RuntimeError: Control image must be in [0, 1]

well that was lame of me. I'm working on adding a much more rigorous set of tests so this sort of thing doesnt happen again

Hehe sh*t happens :) Thanks for all the great work!

wait Version 10.1.1 is pretty old right?

The error Control image must be in [0, 1] seems like its from an old version.

I can't upgrade anymore because of #373

okay I'm working on #373 but I don't see anything actionable here although I didn't look very hard. details and edit working for me. maybe update to a specific version that predates the pydantic additions

Ah makes total sense!