Spaces:
Sleeping
Sleeping
add gpu
Browse files- app.py +5 -0
- requirements.txt +3 -3
app.py
CHANGED
@@ -339,6 +339,11 @@ opt.ckpt = opt.sd_path+opt.ckpt
|
|
339 |
seed_everything(opt.seed)
|
340 |
|
341 |
# pdb.set_trace()
|
|
|
|
|
|
|
|
|
|
|
342 |
|
343 |
config = OmegaConf.load(f"{opt.config}")
|
344 |
if os.path.exists(opt.ckpt):
|
|
|
339 |
seed_everything(opt.seed)
|
340 |
|
341 |
# pdb.set_trace()
|
342 |
+
print(f"Is CUDA available: {torch.cuda.is_available()}")
|
343 |
+
# True
|
344 |
+
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
345 |
+
# Tesla T4
|
346 |
+
|
347 |
|
348 |
config = OmegaConf.load(f"{opt.config}")
|
349 |
if os.path.exists(opt.ckpt):
|
requirements.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
--extra-index-url https://download.pytorch.org/whl/cu113
|
2 |
-
torch
|
3 |
-
torchvision
|
4 |
git+https://github.com/huggingface/diffusers.git
|
5 |
ftfy
|
6 |
matplotlib
|
|
|
1 |
+
--extra-index-url https://download.pytorch.org/whl/cu113
|
2 |
+
torch
|
3 |
+
torchvision
|
4 |
git+https://github.com/huggingface/diffusers.git
|
5 |
ftfy
|
6 |
matplotlib
|