-
Notifications
You must be signed in to change notification settings - Fork 965
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
RELU Error on transferring Keras weight to pytorch #920
Comments
Hi, Have you solve this problem? I met this same problem and did exactly what you did. Minor update:
|
Platform (like ubuntu 16.04/win10): Ubuntu 18.04, using docker image provided
Python version: 3.6.9
Source framework with version (like Tensorflow 1.4.1 with GPU): Keras 2.1.6 / 2.2.2, tensorflow 2.2.0
Destination framework with version (like CNTK 2.3 with GPU): pytorch 1.8.1
Pre-trained model path (webpath or webdisk path): custom weights
Running scripts: $ mmconvert -sf keras -df pytorch -om trial.pth -iw my_custom_weights.h5
On running script above under Keras 2.2.2 enviornment, i got following errrors:
on inspecting first error on keras2_parser.py", line 104, I noticed downgrading Keras version to 2.1.6 might help.
on my second trial(with same script) under keras 2.1.6 enviornment, i got following errors
Sine similar errors with ReLU and Conv2D, I was wondering if there would be some solution
The text was updated successfully, but these errors were encountered: