Closed jags111 closed 8 months ago
Please make sure that you have the proper version of pytorch-lightning installed as listed in requirements.txt
already installed and checked again now for same checked the pytorch-lightning install from PYPI also. https://pypi.org/project/pytorch-lightning/ does it need to be a special install or whatever pip install will do. will the version have any issue in the results.
@jags111 Versions have to exactly match the ones in requirements.txt
to be frank when the issue was checked i just simply ran the pip install requirements.txt and now that it is throwing some error from lightning will check out the same and then update if the module is the one giving same. Thanks
It throws an error for me too, don't know if it's related.
python 3.12 , cuda 1.2.1 and torch 2.3.0.dev20231220+cu121
Error occurred when executing LDSRUpscaler:
'global_step'
File "/run/media/toni/DATA/Software/Stable_Diffusion/ComfyUI/execution.py", line 154, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/run/media/toni/DATA/Software/Stable_Diffusion/ComfyUI/execution.py", line 84, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/run/media/toni/DATA/Software/Stable_Diffusion/ComfyUI/execution.py", line 77, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/run/media/toni/DATA/Software/Stable_Diffusion/ComfyUI/custom_nodes/ComfyUI-Flowty-LDSR/__init__.py", line 46, in upscale
outputs.append(ldsr.superResolution(image, int(steps), pre_downscale, post_downscale, downsample_method))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/run/media/toni/DATA/Software/Stable_Diffusion/ComfyUI/venv/lib64/python3.12/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/run/media/toni/DATA/Software/Stable_Diffusion/ComfyUI/custom_nodes/ComfyUI-Flowty-LDSR/ldsrlib/LDSR.py", line 203, in superResolution
model = self.load_model_from_config()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/run/media/toni/DATA/Software/Stable_Diffusion/ComfyUI/custom_nodes/ComfyUI-Flowty-LDSR/ldsrlib/LDSR.py", line 27, in load_model_from_config
global_step = pl_sd["global_step"]
~~~~~^^^^^^^^^^^^^^^
Same here. Already installed pytorch-lightning 1.7.7 as instructed. Still got this error.
@Botoni people on reddit confirmed that redownloading the checkpoint file helped them with this issue
@charliebrown777 I believe you that you installed pytorch lightning but this error says you dont have it, maybe you didn't install it in the right folder or you have a portable version of comfyui (I dont know how to make it work on the portable one)
@charliebrown777 I believe you that you installed pytorch lightning but this error says you dont have it, maybe you didn't install it in the right folder or you have a portable version of comfyui (I dont know how to make it work on the portable one)
Portable or not it is compatible with hundreds of custom nodes I use. So what folder should the lighting be put into? I just pip the module in cmd. Thanks!
@charliebrown777 I don't use the portable version, but i think that you installed the pytorch-lighting package to the system python and you should install it with the embedded python.
@flowtyone what checkpoint are you referring to? The SD model?
I just set up the workflow as the one in the repository.
@Botoni check out the installation instructions, they include a download link
@Botoni check out the installation instructions, they include a download link
Thanks! Solved my error and everything works, well, except I ran out of memory with 8 vram upscaling a 1080p ^_^u
While running the LDSR upscale node it is giving some error not clear from the directory path or settings in the init.py Please check the error details here;
thanks for the node and model and would love to test same