Skip to content

Commit 45bc327

Browse files
azhavoroFernando Martínez González
authored and
Fernando Martínez González
committed
Fixed auto_segmentation app (cvat-ai#1562)
* disabled tf eager execution for auto_segmentation * Update CHANGELOG.md
1 parent d002f85 commit 45bc327

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4646
- Fixed an issue with large number of instances in instance mask (https://github.com/opencv/cvat/issues/1539)
4747
- Fixed full COCO dataset import error with conflicting labels in keypoints and detection (https://github.com/opencv/cvat/pull/1548)
4848
- Fixed COCO keypoints skeleton parsing and saving (https://github.com/opencv/cvat/issues/1539)
49+
- `tf.placeholder() is not compatible with eager execution` exception for auto_segmentation (https://github.com/opencv/cvat/pull/1562)
4950

5051
### Security
5152
-

cvat/apps/auto_segmentation/views.py

+5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ def _convert_to_segmentation(mask):
4141

4242
## INITIALIZATION
4343

44+
# workarround for tf.placeholder() is not compatible with eager execution
45+
# https://github.com/tensorflow/tensorflow/issues/18165
46+
import tensorflow as tf
47+
tf.compat.v1.disable_eager_execution()
48+
4449
# Root directory of the project
4550
ROOT_DIR = os.environ.get('AUTO_SEGMENTATION_PATH')
4651
# Import Mask RCNN

0 commit comments

Comments
 (0)