(venv) D:\Ganu\AIImage\project\Train-10Images-chatgptParameters\runs\1sstrun-23thApril2025\generation\1stGo>python John-Training-15thMay2025.py
Loading pipeline components…: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 7/7 [00:02<00:00, 3.35it/s]
Traceback (most recent call last):
File “D:\Ganu\AIImage\project\Train-10Images-chatgptParameters\runs\1sstrun-23thApril2025\generation\1stGo\John-Training-15thMay2025.py”, line 7, in
).to(“cuda”)
File “D:\Ganu\AIImage\venv\lib\site-packages\diffusers\pipelines\pipeline_utils.py”, line 461, in to
module.to(device, dtype)
File “D:\Ganu\AIImage\venv\lib\site-packages\diffusers\models\modeling_utils.py”, line 1077, in to
return super().to(*args, **kwargs)
File “D:\Ganu\AIImage\venv\lib\site-packages\torch\nn\modules\module.py”, line 1355, in to
return self._apply(convert)
File “D:\Ganu\AIImage\venv\lib\site-packages\torch\nn\modules\module.py”, line 915, in _apply
module._apply(fn)
File “D:\Ganu\AIImage\venv\lib\site-packages\torch\nn\modules\module.py”, line 915, in _apply
module._apply(fn)
File “D:\Ganu\AIImage\venv\lib\site-packages\torch\nn\modules\module.py”, line 915, in _apply
module._apply(fn)
[Previous line repeated 2 more times]
File “D:\Ganu\AIImage\venv\lib\site-packages\torch\nn\modules\module.py”, line 942, in _apply
param_applied = fn(param)
File “D:\Ganu\AIImage\venv\lib\site-packages\torch\nn\modules\module.py”, line 1341, in convert
return t.to(
torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 14.00 MiB. GPU 0 has a total capacity of 4.00 GiB of which 0 bytes is free. Of the allocated memory 10.67 GiB is allocated by PyTorch, and 229.42 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (CUDA semantics — PyTorch 2.7 documentation)
1 Like