Comments (11)
all i need to check is if the folder is empty or not, otherwise it should use the ````files_for_...``` for each folder. i will do it soon.
from comfyui_vlm_nodes.
well, it should not do that, did you check the inside the folder? are files there?
from comfyui_vlm_nodes.
It seems that the files are properly in the specified folder. Of course, it’s an SSD.
It might not be related, but when I ran the program with the PC disconnected from the internet, the following error occurred.
Error occurred when executing Joytag:
[Errno 2] No such file or directory: 'C:\\Users\\---\\.cache\\huggingface\\hub\\models--fancyfeast--joytag\\snapshots\\6b7f16331a6ccf0fdce37d5a9564715f6e772b22\\config.json'
from comfyui_vlm_nodes.
can you change the local_files_only=True in the snapshot_download
function inside nodes/joytag.py
from comfyui_vlm_nodes.
I tried it right away, but despite being connected to the internet, I started getting the same error as when the internet connection was cut off.
Error occurred when executing Joytag:
[Errno 2] No such file or directory: 'C:\\Users\\---\\.cache\\huggingface\\hub\\models--fancyfeast--joytag\\snapshots\\6b7f16331a6ccf0fdce37d5a9564715f6e772b22\\config.json'
from comfyui_vlm_nodes.
can you change this
def download_joytag():
# Ensure the correct behavior based on the existence of the local directory
print(f"Target directory for download: {files_for_joytagger}")
# Call snapshot_download with specified parameters
path = snapshot_download(
"fancyfeast/joytag", # Example repo_id
local_dir=files_for_joytagger,
force_download=False, # Set to True if you always want to download, regardless of local copy
local_files_only=False, # Set to False to allow downloading if not available locally
local_dir_use_symlinks="auto" # or set to True/False based on your symlink preference
)
print(f"Model path: {path}")
return path
def download_joytag():
# Ensure the correct behavior based on the existence of the local directory
print(f"Target directory for download: {files_for_joytagger}")
# Call snapshot_download with specified parameters
path = files_for_joytagger
print(f"Model path: {path}")
return path
to this
from comfyui_vlm_nodes.
It works perfectly! The speed is fantastic.
from comfyui_vlm_nodes.
nice! if you are sure about you downloaded all of the files. you can change any snapshot_download
function with files_for_...
in any node that has this.
from comfyui_vlm_nodes.
Thank you so much!
However, I’m not very familiar with how git works. Will this code be overwritten in future updates?
I feel like we could avoid such issues by checking if files_for_joytagger
exists before executing snapshot_download
. What do you think?
from comfyui_vlm_nodes.
yes it could be done, i have tried it messed it up but i will make it work soon.
from comfyui_vlm_nodes.
There’s also a high possibility that the snapshot issue is being caused by my environment, so I’ll report back if I find out anything.
Thank you😄
from comfyui_vlm_nodes.
Related Issues (20)
- The VRAM usage is too high and cannot be released. HOT 1
- Can't install VLM nodes in ComfyUI HOT 14
- ChatMuscian Error HOT 1
- Suggestion: wave_form/sample_rate to vhs_audio
- GPU not utilized with standard llama-cpp-python HOT 1
- Error using xcomposer: Can't move a model that's been offloaded (delete this please)
- Get Keywords bug HOT 2
- Moondream error after installing VLM nodes HOT 2
- IMPORT FAILED in ComfyUI HOT 1
- Structured Output breaking. HOT 6
- LLaVA++ HOT 1
- ValueError("Prompt exceeds n_ctx") # TODO: Fix HOT 2
- RuntimeError: Failed to load shared library 'D:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\llama_cpp\llama.dll
- Using Llama3 and other models via Replicate HOT 2
- Load the wrong GGUF model causes (core dump) crash
- Kosmos 2.5 released - Possible to add support for it? HOT 2
- requesting deepseek-vl and qwen-vl nodes HOT 5
- How can I unload a model from memory? HOT 6
- When huggingface-hub==0.20.3 is forcibly installed, ComfyUI fails to start. HOT 4
- Is it possible to combine both branches (main + mac) into the one? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from comfyui_vlm_nodes.