# Issue Loading TensorFlow .h5 Model in 3D Slicer – "Unknown Layer: 'TensorFlowOpLayer

**URL:** <https://discourse.slicer.org/t/issue-loading-tensorflow-h5-model-in-3d-slicer-unknown-layer-tensorflowoplayer/42583>\
**Category:** Support\
**Created:** [April 16, 2025, 10:39am UTC](https://discourse.slicer.org/t/issue-loading-tensorflow-h5-model-in-3d-slicer-unknown-layer-tensorflowoplayer/42583 "2025-04-16T10:39:47Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [April 17, 2025, 1:41pm UTC](https://discourse.slicer.org/t/issue-loading-tensorflow-h5-model-in-3d-slicer-unknown-layer-tensorflowoplayer/42583/9 "2025-04-17T13:41:10Z")

</div>

Based on the original error you ran into, I think it is likely tensorflow being an issue in Slicer. However, I don’t think many in this community use Tensorflow as it is almost exclusively PyTorch usage. You could try converting the keras h5 model to an onnx object with something like [GitHub - onnx/tensorflow-onnx: Convert TensorFlow, Keras, Tensorflow.js and Tflite models to ONNX](https://github.com/onnx/tensorflow-onnx).

Based on the specific ADS model being GPL, there likely won’t be a lot of additional support here based on the type of discussion at:

> [@Packaging Acute Stroke Detection Module for Slicer](https://discourse.slicer.org/t/packaging-acute-stroke-detection-module-for-slicer/42340):
>
> Repository: [GitHub - Chin-Fu-Liu/Acute-stroke\_Detection\_Segmentation](https://github.com/Chin-Fu-Liu/Acute-stroke_Detection_Segmentation) Problem: I want to package the Acute Stroke Detection and Segmentation (ADS) module for 3D Slicer with pre-trained models. Specific Challenges: Including pre-trained deep learning models in the Slicer extension Managing specific Python library dependencies (TensorFlow, h5py, etc.) Ensuring the module works across different systems Key Questions: What’s the recommended way to include machine learning models in a Slicer ex…

---

_[View the full topic](https://discourse.slicer.org/t/issue-loading-tensorflow-h5-model-in-3d-slicer-unknown-layer-tensorflowoplayer/42583)._
