Comments (5)
you might also want to try generating a flame graph on a Linux system.
from diffusers.
In addition to what Sayak said, to my knowledge, PyTorch makes calculations asynchronously in GPU. So, could you put torch.cuda.synchronise()
before each time.time()
? Also, time.perf_counter()
is recommended most of the time instead of time.time()
.
from diffusers.
To my knowledge, PyTorch makes calculations asynchronously in GPU. So, could you put
torch.cuda.synchronise()
before eachtime.time()
? Also,time.perf_counter()
is recommended most of the time instead oftime.time()
.
Thanks!
I add torch.cuda.synchronize()
after UNet, and the time seems right!
Also, I'm curious about what happened during torch.cuda.synchronize()
.
And it goes strange when I remove if self.do_classifier_free_guidance:
, will that cause any problem?
Thanks again!
from diffusers.
Thanks for the detailed thread. Might be a good candidate for discussions.
Have you tried warming up the GPU before reporting the numbers? If not, I would suggest running a few warm-up steps first before reporting the numbers.
from diffusers.
Thanks for the detailed thread. Might be a good candidate for discussions.
Have you tried warming up the GPU before reporting the numbers? If not, I would suggest running a few warm-up steps first before reporting the numbers.
I also tried num_inference_steps=50, even in the last loop, the time did not change alot (even a little slower). So, I didn't try warming up.
from diffusers.
Related Issues (20)
- EDMEulerScheduler fails when fineturning CosXL_edit model. HOT 2
- Bug in FlaxDiffusionPipeline's from_pt option in Google Collab's TPUv2 HOT 1
- [0.28.0]: from_single_file doesn't work with custom checkpoints HOT 6
- $100 Free Google Play Gift Card Codes Instantly 2024
- Free Google Gift Card (Redeem Code) Generator 2024
- Free Google Play Gift Card Codes - Free Redeem Codes 2024!
- fReE!!โGoogle Play Gift Cards Codes Redeem 2024
- Free $750 Google Play Gift Card Codes - Free Redeem Codes 2024!
- fReE!! Dice Dreams Free Rolls 2024- Daily Links
- Daily Links Dice Dreams Free Rolls (June 2024)
- LaTeSt!!**Dice Dreams Free Rolls (June 2024) - Daily Links
- ~Real$} Dice dreams free rolls {2024} Updated Daily #WIN24
- [[GeT!]] Dice Dreams Free Rolls (June 2024) - Daily Links
- prs-eth/marigold-depth-lcm-v1-0 is not available on huggingface HOT 5
- "Input is in incorrect format." incorrect error message HOT 1
- [0.28.0.dev0] In ControlNetModel forward function, added_cond_kwargs arg's default value should be {} rather than None HOT 5
- Training ControlNet-Xs HOT 3
- [Community] Help us fix the LR schedulers when `num_train_epochs` is passed in a distributed training env
- Stable Cascade Controlnet training HOT 2
- StableDiffusionControlNetpaint destroying original image contrast and sharpness HOT 11
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 diffusers.