We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I deployed ComfyUI on the DSW server of Alibaba Cloud. When I tried to zoom in with the enlarged model, it displayed this error
The text was updated successfully, but these errors were encountered:
pytorch2.1.2tensorflow2.14.0-gpu-py310-cu121-ubuntu22.04 This is my system environment
Sorry, something went wrong.
I stopped using a1111 for a few months. When I tried it today again today, I'm getting the same error...
Can confirm this when trying out the DemonCore Workflow from Civitai, which depends on these nodes for upscaling.
After having searched and found a hint on stackoverflow, I made a desperate attempt that finally worked:
diff --git a/nodes/functions_upscale.py b/nodes/functions_upscale.py index 2c25f03..a6c748c 100644 --- a/nodes/functions_upscale.py +++ b/nodes/functions_upscale.py @@ -54,7 +54,8 @@ def upscale_with_model(upscale_model, image): if tile < 128: raise e - upscale_model.cpu() + device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') + upscale_model.to(device) s = torch.clamp(s.movedim(-3,-1), min=0, max=1.0) return s
No branches or pull requests
I deployed ComfyUI on the DSW server of Alibaba Cloud. When I tried to zoom in with the enlarged model, it displayed this error
![image](https://private-user-images.githubusercontent.com/163592591/335629850-7cc3a1d0-f1b1-4523-96c2-7fe7e7610d17.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAzNTA4MTIsIm5iZiI6MTcyMDM1MDUxMiwicGF0aCI6Ii8xNjM1OTI1OTEvMzM1NjI5ODUwLTdjYzNhMWQwLWYxYjEtNDUyMy05NmMyLTdmZTdlNzYxMGQxNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGV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hlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.4uiSwvYCgyJZUKzQIJsfUaIrtsvLnms5NftJHJRDF9o)
![image](https://private-user-images.githubusercontent.com/163592591/335629992-bf1e1e1a-fc50-44b6-a5a8-b166ff314502.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAzNTA4MTIsIm5iZiI6MTcyMDM1MDUxMiwicGF0aCI6Ii8xNjM1OTI1OTEvMzM1NjI5OTkyLWJmMWUxZTFhLWZjNTAtNDRiNi1hNWE4LWIxNjZmZjMxNDUwMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzA3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwN1QxMTA4MzJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jN2JiYzUyMTdiYjVjYWRhMTE1MTM5Nzg4MTM1NzI2MDExMzVhYTY5NTA2N2U2YjAxZTQ4MmE3NWYyODQ3Yjk1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Dq-C51ytVAguc_quDMGcIZ5ZdVGVLUYNGyrIDN36LTA)
The text was updated successfully, but these errors were encountered: