Summary
• Implemented global offline mode for all HuggingFace-dependent modules to eliminate unauthenticated request warnings and prevent external connection attempts during startup and runtime. Changes • Global Offline Configuration: Added HF_HUB_OFFLINE=1 and TRANSFORMERS_OFFLINE=1 to the environment variables at the top of edit_api.py, embeddings.py, watcher.py, and pose_llm/pose_llm_api.py. • Explicit Local Files Only: Updated all huggingface_hub.hf_hub_download calls in edit_api.py to include local_files_only=True, ensuring they never attempt to reach the Hub if models are already cached. • LLM Service Optimization: Updated AutoTokenizer and AutoModelForCausalLM calls in pose_llm/pose_llm_api.py to use local_files_only=True. • Consistency: Ensured that shared modules like embeddings.py which uses open_clip are also locked to offline mode to prevent background downloads.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"api_url": "http://127.0.0.1:8500/edit",
|
||||
"base_prompts": [
|
||||
"masterpiece. high quality. hyper realistic. detailed, detailed skin",
|
||||
"detailed female nude. realistic, detailed teenage female nude. realistic",
|
||||
"masterpiece. high quality. realistic. detailed. female nude. detailed teenage female nude. photo-realistic",
|
||||
"masterpiece. high quality. realistic. detailed. female nude. photo-realistic",
|
||||
"masterpiece. high quality. realistic. detailed. teenage female nude. photo-realistic",
|
||||
"Masterpeice, high quality, detailed, detailed skin, Head-on detailed full-nude-body three-quarter female portrait, photo realistic, black void background, Keep all characteristics and facial expressions of reference image.",
|
||||
|
||||
Reference in New Issue
Block a user