Daankular commited on
Commit
21b83d7
·
verified ·
1 Parent(s): 43b46d3

Upload folder using huggingface_hub

Browse files
sapiens/engine/__init__.py CHANGED
@@ -5,7 +5,10 @@
5
  # LICENSE file in the root directory of this source tree.
6
 
7
  from .optim import *
8
- from .runners import *
 
 
 
9
  from .logger import *
10
  from .visualizers import *
11
  from .datasets import *
 
5
  # LICENSE file in the root directory of this source tree.
6
 
7
  from .optim import *
8
+ try:
9
+ from .runners import * # training-only; needs a newer `accelerate` than inference deps pin
10
+ except Exception:
11
+ pass
12
  from .logger import *
13
  from .visualizers import *
14
  from .datasets import *
sapiens/engine/runners/__init__.py CHANGED
@@ -4,6 +4,9 @@
4
  # This source code is licensed under the license found in the
5
  # LICENSE file in the root directory of this source tree.
6
 
7
- from .base_runner import BaseRunner
 
 
 
8
 
9
  __all__ = ["BaseRunner"]
 
4
  # This source code is licensed under the license found in the
5
  # LICENSE file in the root directory of this source tree.
6
 
7
+ try:
8
+ from .base_runner import BaseRunner # training-only; needs a newer `accelerate` than inference deps pin
9
+ except Exception:
10
+ BaseRunner = None
11
 
12
  __all__ = ["BaseRunner"]
sapiens/pose/src/runners/__init__.py CHANGED
@@ -4,6 +4,9 @@
4
  # This source code is licensed under the license found in the
5
  # LICENSE file in the root directory of this source tree.
6
 
7
- from .pose_runner import PoseRunner
 
 
 
8
 
9
  __all__ = ["PoseRunner"]
 
4
  # This source code is licensed under the license found in the
5
  # LICENSE file in the root directory of this source tree.
6
 
7
+ try:
8
+ from .pose_runner import PoseRunner # training-only; needs a newer `accelerate` than inference deps pin
9
+ except Exception:
10
+ PoseRunner = None
11
 
12
  __all__ = ["PoseRunner"]