TypeError: can't convert expression to float when converting yolo.h5
- Dominant language
- Python
- Stars
- 5.4k
- Forks
- 850
- Avg merge
- 4d 5h
- Merged PRs (30d)
- 10
Description
## 🐞Describe the bug
When trying to convert a yolo.h5 model I get the error:
>TypeError: can't convert expression to float can't convert expression to float
Model: [Yolo Model](https://github.com/OlafenwaMoses/ImageAI/releases/download/1.0/yolo.h5)
Code: [Colab Notebook](https://colab.research.google.com/drive/1PEL2_ten0Fr9Tcem00rVNZIIJ15DOi68?usp=sharing)
## Trace

## To Reproduce
Check the provided notebook above.
## System environment (please complete the following information):
- coremltools version (e.g., 4.0b3):
- colab
Contributor guide
Research direction
Start by running the provided Colab notebook with the linked yolo.h5 model and inspect the conversion trace around the reported TypeError. Identify the conversion step that attempts to convert an expression to a float; done means the model converts successfully without that error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, tensorflow
- Domain
- machine-learning, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100