Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
4306659c
Commit
4306659c
authored
Feb 04, 2023
by
brkirch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused code
parent
1b8af15f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
6 deletions
+0
-6
mac_specific.py
modules/mac_specific.py
+0
-3
shared.py
modules/shared.py
+0
-3
No files found.
modules/mac_specific.py
View file @
4306659c
...
...
@@ -4,9 +4,6 @@ from modules.sd_hijack_utils import CondFunc
from
packaging
import
version
device
=
None
# has_mps is only available in nightly pytorch (for now) and macOS 12.3+.
# check `getattr` and try it for compatibility
def
check_for_mps
()
->
bool
:
...
...
modules/shared.py
View file @
4306659c
...
...
@@ -145,9 +145,6 @@ devices.device, devices.device_interrogate, devices.device_gfpgan, devices.devic
(
devices
.
cpu
if
any
(
y
in
cmd_opts
.
use_cpu
for
y
in
[
x
,
'all'
])
else
devices
.
get_optimal_device
()
for
x
in
[
'sd'
,
'interrogate'
,
'gfpgan'
,
'esrgan'
,
'codeformer'
])
device
=
devices
.
device
if
sys
.
platform
==
"darwin"
:
from
modules
import
mac_specific
mac_specific
.
device
=
device
weight_load_location
=
None
if
cmd_opts
.
lowram
else
"cpu"
batch_cond_uncond
=
cmd_opts
.
always_batch_cond_uncond
or
not
(
cmd_opts
.
lowvram
or
cmd_opts
.
medvram
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment