Error occurred when executing KSampler:
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 155
Description
Here is the error I am getting with the ComfyUI now, it just started happening about 2 hours ago when I tried to generate a new batch of images.
No module named 'torch.mps'
File "/notebooks/ComfyUI/execution.py", line 144, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "/notebooks/ComfyUI/execution.py", line 74, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "/notebooks/ComfyUI/execution.py", line 67, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "/notebooks/ComfyUI/nodes.py", line 1082, in sample
return common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise)
File "/notebooks/ComfyUI/nodes.py", line 1033, in common_ksampler
noise = comfy.sample.prepare_noise(latent_image, seed, batch_inds)
File "/notebooks/ComfyUI/comfy/sample.py", line 12, in prepare_noise
generator = torch.manual_seed(seed)
File "/usr/local/lib/python3.9/dist-packages/torch/random.py", line 42, in manual_seed
return default_generator.manual_seed(seed)
Below is the Jupyter run commands:
`!npm install -g localtunnel
%pip install git+https://github.com/huggingface/transformers
#!pip install git+https://github.com/lilly1987/ComfyUI_node_Lilly
!npm install -g npm@9.6.3
%pip install addict
%pip install libpython3-dev
%pip install gradio
%pip install yapf
%pip install piexif
%pip install prettytable
%pip install mediapipe
%pip install numba
%pip install torch-mps
#python -m pip install
import subprocess
import threading
import time
import socket
def iframe_thread(port):
while True:
time.sleep(0.5)
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
result = sock.connect_ex(('127.0.0.1', port))
if result == 0:
break
sock.close()
print("\nComfyUI finished loading, trying to launch localtunnel (if it gets stuck here localtunnel is having issues)")
p = subprocess.Popen(["lt", "--port", "{}".format(port)], stdout=subprocess.PIPE)
for line in p.stdout:
print(line.decode(), end='')
threading.Thread(target=iframe_thread, daemon=True, args=(8188,)).start()
!python main.py
#--dont-print-server
!wget -q -O - ipv4.icanhazip.com
!curl ipv4.icanhazip.com`
Contributor guide
Assessment
This issue has not been assessed yet.