Comments (5)
Thanks for the report. I've also noticed there is some sort of memory leak. Let me know if your solution works!
from imaginairy.
Thanks for the report. I've also noticed there is some sort of memory leak. Let me know if your solution works!
I'm sorry that I wasn't able to solve the problem completely at this moment. I collecting the torch.cuda.memory_allocated() generated each time,I think the problem may be this pipelined image enhancement,The problem is fix-faces, to be exact. If I have the time so check it out tonight.
imagine with --fix-faces --upscale
repeat.1
Max VRAM used for this generation: 4.29G. Current VRAM utilization:2.51G
repeat.2
Max VRAM used for this generation: 4.29G. Current VRAM utilization:2.72G (leak 200MB)❌
repeat.3
Max VRAM used for this generation: 4.29G. Current VRAM utilization:2.92G (leak 200MB)❌
imagine without --fix-faces --upscale
repeat.1
Max VRAM used for this generation: 4.29G. Current VRAM utilization:2.17G
repeat.2
Max VRAM used for this generation: 4.29G. Current VRAM utilization:2.17G (leak 0MB)✅
repeat.3
Max VRAM used for this generation: 4.29G. Current VRAM utilization:2.17G (leak 0MB)✅
imagine only without --upscale
repeat.1
Max VRAM used for this generation: 4.29G. Current VRAM utilization:2.27G (leak 112MB)
repeat.2
Max VRAM used for this generation: 4.29G. Current VRAM utilization:2.38G (leak 112MB) ❌
repeat.3
Max VRAM used for this generation: 4.29G. Current VRAM utilization:2.49G (leak 112MB) ❌
imagine only without --fix-faces
repeat.1
Max VRAM used for this generation: 4.29G. Current VRAM utilization:2.29G (leak 0MB)
repeat.2
Max VRAM used for this generation: 4.29G. Current VRAM utilization:2.29G (leak 0MB)✅
repeat.3
Max VRAM used for this generation: 4.29G. Current VRAM utilization:2.29G (leak 0MB)✅
from imaginairy.
imagine "xxx" \
--repeats 3 \
--steps 50 \
--prompt-strength 7.5 \
--sampler-type k_lms \
--width 512 \
--height 512 \
--fix-faces
@brycedrennan I believe I've solved this problem by changing the file structure of Codeformer. I'll submit my changes later as PR:)
🤖🧠 imaginAIry received 1 prompt(s) and will repeat them 3 times to create 3 images.
repeat.1
>> Max VRAM used for this generation: 4.29G. Current VRAM utilization:2.96G
repeat.2
>> Max VRAM used for this generation: 4.29G. Current VRAM utilization:2.96G
repeat.3
>> Max VRAM used for this generation: 4.29G. Current VRAM utilization:2.96G
from imaginairy.
awesome thank you. I'd love to know how you output those memory stats as well. we can add a leak detector in the future
from imaginairy.
awesome thank you. I'd love to know how you output those memory stats as well. we can add a leak detector in the future
I see you write "Noisy logs are gone (which was surprisingly hard to accomplish)" in the description of the front page, so no unauthorized addition to the output spoils the beauty, :) I do this locally 👇
print(
f'>> Max VRAM used for this generation:',
'%4.2fG.' % (torch.cuda.max_memory_allocated() / 1e9),
'Current VRAM utilization:'
'%4.2fG' % (torch.cuda.memory_allocated() / 1e9),
)
from imaginairy.
Related Issues (20)
- Errors in Windows/Conda (beta install) HOT 3
- Erros in Python3.10 Venv Environment HOT 3
- using RAM instead of vram HOT 3
- keyboard interrupt prevents "eject" from happening. model left in unusable state
- OpenDalle HOT 11
- something is corrupting weights HOT 1
- Controlnet/ Masks for SDXL HOT 3
- RuntimeError: mat1 and mat2 must have the same dtype, but got Float and Half HOT 4
- Text Diffusers HOT 1
- Video generation quality issues HOT 2
- Error: No such command 'videogen'. HOT 5
- In china: requests.exceptions.ConnectionError HOT 3
- windows github action smoketests aren't actually doing anything
- Problem with masking
- Multi GPU
- Folder upscale with aimg? HOT 2
- control mode details HOT 1
- The size of tensor a (145) must match the size of tensor b (150) at non-singleton dimension 3 HOT 1
- Remodeling ideas, space detection HOT 1
- Error when specifying size on cpu mode HOT 3
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 imaginairy.