apple / apple/coremltools

TypeError: can't convert expression to float when converting yolo.h5

Open
#885 1 comment 0 reactions 0 assignees View on GitHub
bug tf2.x / tf.keras
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
![image](https://user-images.githubusercontent.com/19648988/91609215-4965a680-e977-11ea-9c2a-7a78064ec36b.png)

## To Reproduce
Check the provided notebook above.

## System environment (please complete the following information):
- coremltools version (e.g., 4.0b3):
- colab

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.