Unify launch arguments for ease of editing
NUROISEA opened this issue · 0 comments
NUROISEA commented
Problem
When changing a launch parameter all of the notebooks are modified. I don't want that because I'm too lazy for this.
Solution
Why not utilize configs/utility.py
for this?
Change
args = [
"--xformers [...]",
# more stuff
]
to
args = [
utility.default_args,
# more stuff
]
and add the parameters in the configs/utility.py
instead.
# configs/utility.py
default_args = "--xformers [...]"
But since adding more arguments will make the code scroll horizontally, why not do this instead:
#configs/utility.py
_args_array = [
"--xformers",
"--lowram",
# more args
]
default_args = " ".join(_args_array)