-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to Keras Mish implementation for TfLite compatibility #60
base: master
Are you sure you want to change the base?
Conversation
tf2_yolov4/activations/__init__.py
Outdated
@@ -0,0 +1,5 @@ | |||
"""Activations layers""" | |||
|
|||
from .mish import Mish |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mets un path absolu plutot que relatif
tf2_yolov4/activations/mish.py
Outdated
>>> X = Mish()(X_input) | ||
""" | ||
|
||
def __init__(self, **kwargs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
Waiting for #61 to be resolved before merging