Switch to Keras Mish implementation for TfLite compatibility#60
Open
m-romanenko wants to merge 9 commits intomasterfrom
Open
Switch to Keras Mish implementation for TfLite compatibility#60m-romanenko wants to merge 9 commits intomasterfrom
m-romanenko wants to merge 9 commits intomasterfrom
Conversation
tf2_yolov4/activations/__init__.py
Outdated
| @@ -0,0 +1,5 @@ | |||
| """Activations layers""" | |||
|
|
|||
| from .mish import Mish | |||
Collaborator
There was a problem hiding this comment.
Mets un path absolu plutot que relatif
tf2_yolov4/activations/mish.py
Outdated
| >>> X = Mish()(X_input) | ||
| """ | ||
|
|
||
| def __init__(self, **kwargs): |
Collaborator
There was a problem hiding this comment.
Pas besoin de définir l'init si tu ne fais rien de plus
convert_tflite.py
Outdated
| @click.option( | ||
| "--weights_path", default=None, help="Path to .h5 file with model weights" | ||
| ) | ||
| def main(num_classes, weights_path): |
Collaborator
There was a problem hiding this comment.
Est-ce que tu peux :
- ne pas appeler ca main()
- ajouter dans le setup.py une commande comme c'est fait pour la conversion de poids ? Ca permet d'avoir une CLI quand tu installes la librairie
| weights_path (str, optional): Path to .h5 pre-trained weights file | ||
| """ | ||
| model = YOLOv4( | ||
| input_shape=(HEIGHT, WIDTH, 3), |
Collaborator
There was a problem hiding this comment.
Height and width are parametrizable, is it an argument stored in the tflite model or is it just used for the conversion? We want to make sure users can proceed the inference on any size
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Waiting for #61 to be resolved before merging