mian.py
kkkkuka opened this issue · 0 comments
Global seed set to 23
Traceback (most recent call last):
File "E:\桌面\复现\stable-diffusion-main\main.py", line 535, in
model = instantiate_from_config(config.model)
^^^^^^^^^^^^
File "E:\桌面\复现\stable-diffusion-main\venv\Lib\site-packages\omegaconf\dictconfig.py", line 355, in getattr
self._format_and_raise(
File "E:\桌面\复现\stable-diffusion-main\venv\Lib\site-packages\omegaconf\base.py", line 231, in _format_and_raise
format_and_raise(
File "E:\桌面\复现\stable-diffusion-main\venv\Lib\site-packages\omegaconf_utils.py", line 899, in format_and_raise
_raise(ex, cause)
File "E:\桌面\复现\stable-diffusion-main\venv\Lib\site-packages\omegaconf_utils.py", line 797, in _raise
raise ex.with_traceback(sys.exc_info()[2]) # set env var OC_CAUSE=1 for full trace
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\桌面\复现\stable-diffusion-main\venv\Lib\site-packages\omegaconf\dictconfig.py", line 351, in getattr
return self._get_impl(
^^^^^^^^^^^^^^^
File "E:\桌面\复现\stable-diffusion-main\venv\Lib\site-packages\omegaconf\dictconfig.py", line 442, in _get_impl
node = self._get_child(
^^^^^^^^^^^^^^^^
File "E:\桌面\复现\stable-diffusion-main\venv\Lib\site-packages\omegaconf\basecontainer.py", line 73, in _get_child
child = self._get_node(
^^^^^^^^^^^^^^^
File "E:\桌面\复现\stable-diffusion-main\venv\Lib\site-packages\omegaconf\dictconfig.py", line 480, in _get_node
raise ConfigKeyError(f"Missing key {key!s}")
omegaconf.errors.ConfigAttributeError: Missing key model
full_key: model
object_type=dict
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\桌面\复现\stable-diffusion-main\main.py", line 740, in
if trainer.global_rank == 0:
^^^^^^^
NameError: name 'trainer' is not defined. Did you mean: 'Trainer'?