aboutsummaryrefslogtreecommitdiffstats
path: root/modules/devices.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into masterzhaohu xing2022-11-301-18/+37
|\
| * Merge pull request #4918 from brkirch/pytorch-fixesAUTOMATIC11112022-11-271-7/+24
| |\ | | | | | | Fixes for PyTorch 1.12.1 when using MPS
| | * Add fixes for PyTorch 1.12.1brkirch2022-11-211-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | Fix typo "MasOS" -> "macOS" If MPS is available and PyTorch is an earlier version than 1.13: * Monkey patch torch.Tensor.to to ensure all tensors sent to MPS are contiguous * Monkey patch torch.nn.functional.layer_norm to ensure input tensor is contiguous (required for this program to work with MPS on unmodified PyTorch 1.12.1)
| | * Revert "MPS Upscalers Fix"brkirch2022-11-171-9/+0
| | | | | | | | | | | | This reverts commit 768b95394a8500da639b947508f78296524f1836.
| * | eliminate duplicated code from #5095AUTOMATIC2022-11-271-19/+11
| | |
| * | torch.cuda.empty_cache() defaults to cuda:0 device unless explicitly set ↵Matthew McGoogan2022-11-261-2/+12
| |/ | | | | | | otherwise first. Updating torch_gc() to use the device set by --device-id if specified to avoid OOM edge cases on multi-GPU systems.
* / add AltDiffusion to webuizhaohu xing2022-11-291-2/+2
|/ | | | Signed-off-by: zhaohu xing <920232796@qq.com>
* change formatting to match the main program in devices.pyAUTOMATIC2022-11-121-5/+16
|
* Update devices.py源文雨2022-11-121-1/+1
|
* Fix wrong mps selection below MasOS 12.3源文雨2022-11-121-3/+10
|
* MPS Upscalers Fixbrkirch2022-10-251-0/+4
| | | | Get ESRGAN, SCUNet, and SwinIR working correctly on MPS by ensuring memory is contiguous for tensor views before sending to MPS device.
* Remove BSRGAN from --use-cpu, add SwinIRbrkirch2022-10-251-1/+1
|
* remove parsing command line from devices.pyAUTOMATIC2022-10-221-9/+5
|
* implement CUDA device selection by IDExtraltodeus2022-10-211-3/+18
|
* Add 'interrogate' and 'all' choices to --use-cpubrkirch2022-10-141-1/+1
| | | | | * Add 'interrogate' and 'all' choices to --use-cpu * Change type for --use-cpu argument to str.lower, so that choices are case insensitive
* --no-half-vaeAUTOMATIC2022-10-101-1/+5
|
* Merge branch 'master' into cpu-cmdline-optbrkirch2022-10-041-0/+10
|\
| * send all three of GFPGAN's and codeformer's models to CPU memory instead of ↵AUTOMATIC2022-10-041-0/+10
| | | | | | | | just one for #1283
* | Add BSRGAN to --add-cpubrkirch2022-10-041-1/+1
| |
* | Add --use-cpu command line optionbrkirch2022-10-041-3/+2
| | | | | | | | Remove MPS detection to use CPU for GFPGAN / CodeFormer and add a --use-cpu command line option.
* | Merge branch 'master' into masterbrkirch2022-10-041-2/+1
|\|
| * initial support for training textual inversionAUTOMATIC2022-10-021-2/+1
| |
* | When device is MPS, use CPU for GFPGAN insteadbrkirch2022-10-011-1/+1
|/ | | | GFPGAN will not work if the device is MPS, so default to CPU instead.
* first attempt to produce crrect seeds in batchAUTOMATIC2022-09-131-0/+10
|
* changes for #294AUTOMATIC2022-09-121-0/+17
|
* Allow TF32 in CUDA for increased performance #279AUTOMATIC2022-09-121-0/+11
|
* add half() supporrt for CLIP interrogationAUTOMATIC2022-09-111-0/+6
|
* CLIP interrogatorAUTOMATIC2022-09-111-6/+10
|
* Modular device managementAbdullah Barhoum2022-09-111-0/+12