-
Notifications
You must be signed in to change notification settings - Fork 111
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
Update install_env.sh of Comfy #1170
Changes from all commits
75205c7
fcb1156
b8e0fa0
9c9e698
9315b2e
3fe3ce6
f6f2866
06e1fa6
ad385d6
8872c33
330b314
7f0fe0e
e04c0ae
80a7ad2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -22,10 +22,9 @@ if [ "$CI" = "1" ]; then | |||||||||||||||||||||||||||||
echo "Detected CI environment. Skipping local environment-specific dependencies." | ||||||||||||||||||||||||||||||
else | ||||||||||||||||||||||||||||||
echo "Detected local environment. Installing local environment-specific dependencies." | ||||||||||||||||||||||||||||||
pip install -r $CUSTOM_NODES/ComfyUI_InstantID/requirements.txt | ||||||||||||||||||||||||||||||
pip install -r $CUSTOM_NODES/PuLID_ComfyUI/requirements.txt | ||||||||||||||||||||||||||||||
python3 -m pip install --user -r $CUSTOM_NODES/ComfyUI_InstantID/requirements.txt | ||||||||||||||||||||||||||||||
python3 -m pip install --user -r $CUSTOM_NODES/PuLID_ComfyUI/requirements.txt | ||||||||||||||||||||||||||||||
Comment on lines
+25
to
+26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Add error handling for requirements installation. The requirements installation commands should include error handling to ensure the script fails gracefully if the requirements files are missing or if installations fail. Consider this improvement: - python3 -m pip install --user -r $CUSTOM_NODES/ComfyUI_InstantID/requirements.txt
- python3 -m pip install --user -r $CUSTOM_NODES/PuLID_ComfyUI/requirements.txt
+ for node in "ComfyUI_InstantID" "PuLID_ComfyUI"; do
+ req_file="$CUSTOM_NODES/$node/requirements.txt"
+ if [ -f "$req_file" ]; then
+ echo "Installing requirements for $node..."
+ python3 -m pip install --user -r "$req_file" || {
+ echo "Failed to install requirements for $node"
+ exit 1
+ }
+ else
+ echo "Warning: Requirements file not found for $node"
+ fi
+ done 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||
fi | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
echo "Installing common dependencies..." | ||||||||||||||||||||||||||||||
pip install websocket-client==1.8.0 numpy==1.26.4 scikit-image -i https://pypi.tuna.tsinghua.edu.cn/simple | ||||||||||||||||||||||||||||||
pip install nexfort | ||||||||||||||||||||||||||||||
python3 -m pip install --user nexfort websocket-client==1.8.0 numpy==1.26.4 scikit-image |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ diffusers[torch]==0.19.3 | |
onediff | ||
chardet | ||
opencv-python==4.8.0.74 | ||
opencv-python-headless |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Script permissions need to be updated for execution
The installation script (
install_env.sh
) exists but lacks execution permissions (current:-rw-r--r--
). This needs to be addressed for the workflow to execute properly.onediff_comfy_nodes/benchmarks/scripts/install_env.sh
needs execution permissions (chmod +x
)To fix this, you should add a step to set execution permissions before running the script:
🔗 Analysis chain
Verify installation script execution
The installation script is being executed in the ComfyUI environment. Let's verify its contents and execution permissions.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 1229