Fix mmpose import error preservation
Agent-Logs-Url: https://github.com/IBB666/IBB_POSE/sessions/8173cd3d-9400-4422-8793-9248406eb79e Co-authored-by: kukulu00 <1170651+kukulu00@users.noreply.github.com>
This commit is contained in:
co-authored by
kukulu00
parent
9778cbf745
commit
cf31207d75
@@ -15,12 +15,13 @@ from types import SimpleNamespace
|
||||
import numpy as np
|
||||
from torch import nn
|
||||
|
||||
_mmpose_import_error = None
|
||||
|
||||
try:
|
||||
from mmpose.registry import MODELS
|
||||
except ImportError as _mmpose_import_error:
|
||||
except ImportError as exc:
|
||||
MODELS = None
|
||||
else:
|
||||
_mmpose_import_error = None
|
||||
_mmpose_import_error = exc
|
||||
|
||||
|
||||
def _build_head_cfg(mode="body"):
|
||||
|
||||
Reference in New Issue
Block a user