Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MTEED.pth file not found #31

Open
MatuttiFrutti opened this issue Sep 30, 2024 · 2 comments
Open

MTEED.pth file not found #31

MatuttiFrutti opened this issue Sep 30, 2024 · 2 comments

Comments

@MatuttiFrutti
Copy link

Not sure what the issue is here. I am trying to process an image 1280x720 into the anyline but it keeps giving me an incomplete MTEED.pth.XXXXX issue

image

File "C:\Users\matth\Documents\fluxComfy\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "C:\Users\matth\Documents\fluxComfy\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\matth\Documents\fluxComfy\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Anyline\anyline.py", line 50, in get_anyline
mteed_model = TEDDetector(model=self.load_model()).to(self.device)
^^^^^^^^^^^^^^^^^
File "C:\Users\matth\Documents\fluxComfy\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Anyline\anyline.py", line 41, in load_model
checkpoint_path = hf_hub_download(repo_id="TheMistoAI/MistoLine", filename=checkpoint_filename, subfolder=subfolder, local_dir=checkpoint_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\matth\Documents\fluxComfy\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\utils_deprecation.py", line 101, in inner_f
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "C:\Users\matth\Documents\fluxComfy\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\utils_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\matth\Documents\fluxComfy\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\file_download.py", line 1220, in hf_hub_download
return _hf_hub_download_to_local_dir(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\matth\Documents\fluxComfy\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\file_download.py", line 1515, in _hf_hub_download_to_local_dir
_download_to_tmp_and_move(
File "C:\Users\matth\Documents\fluxComfy\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\file_download.py", line 1903, in _download_to_tmp_and_move
with incomplete_path.open("ab") as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pathlib.py", line 1044, in open
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\matth\Documents\fluxComfy\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Anyline\checkpoints\Anyline\.cache\huggingface\download\Anyline\MTEED.pth.a3c2d8a8ce9422555c787160bd46362d761325a565333c0e3f6a53e0bae2abdb.incomplete'

@maybeeyesnet
Copy link

me too

@PressWagon
Copy link

You can fix the issue by deleting " / subfolder" in anyline.py from the line:
checkpoint_dir = Path(__file__).parent.resolve() / "checkpoints" / subfolder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants