linter
This commit is contained in:
parent
60397a7800
commit
5cf623c58e
|
@ -41,7 +41,7 @@ for d, must_exist, what, options in path_dirs:
|
||||||
# import sgm and remove it from sys.path so that when a script imports scripts.something, it doesbn't use sgm's scripts dir.
|
# import sgm and remove it from sys.path so that when a script imports scripts.something, it doesbn't use sgm's scripts dir.
|
||||||
|
|
||||||
sys.path.insert(0, d)
|
sys.path.insert(0, d)
|
||||||
import sgm
|
import sgm # noqa: F401
|
||||||
sys.path.pop(0)
|
sys.path.pop(0)
|
||||||
else:
|
else:
|
||||||
sys.path.append(d)
|
sys.path.append(d)
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import sys
|
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
import sgm.models.diffusion
|
import sgm.models.diffusion
|
||||||
|
|
Loading…
Reference in New Issue