Visitar URL original
Set WRAPT_DISABLE_EXTENSIONS env var · DeepLabCut/DeepLabCut@b4aca6e · GitHub
Skip to content

Commit b4aca6e

Browse files
committed
Set WRAPT_DISABLE_EXTENSIONS env var
1 parent 57ca3f6 commit b4aca6e

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎.github/workflows/python-package.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
- name: Install TensorFlow
3838
shell: bash -el {0} # Important: activates the conda environment
3939
if: runner.os != 'macOS'
40-
run: |
41-
pip install tensorflow tensorpack==0.11 tf_slim==1.1.0 tf-keras wrapt==1.14.1
40+
run: | # wrapt==1.14.1
41+
pip install tensorflow tensorpack==0.11 tf_slim==1.1.0 tf-keras
4242
4343
- name: Install TensorFlow on macOS
4444
shell: bash -el {0} # Important: activates the conda environment

‎deeplabcut/pose_estimation_tensorflow/__init__.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
# Licensed under GNU Lesser General Public License v3.0
1313
#
1414

15+
from . import _tf_legacy
16+
1517
# Suppress tensorflow warning messages
1618
import tensorflow as tf
1719
tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR)
1820

19-
from . import _tf_legacy
20-
2121
from deeplabcut.pose_estimation_tensorflow.config import *
2222
from deeplabcut.pose_estimation_tensorflow.datasets import *
2323
from deeplabcut.pose_estimation_tensorflow.default_config import *

‎deeplabcut/pose_estimation_tensorflow/_tf_legacy.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import sys
33

44
os.environ.setdefault("TF_USE_LEGACY_KERAS", "1")
5+
os.environ.setdefault("WRAPT_DISABLE_EXTENSIONS", "1")
56

67
try:
78
import tf_keras.src.legacy_tf_layers as legacy_tf_layers

0 commit comments

Comments
 (0)