Skip to content
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

porting to mxnet problem #9

Closed
pribadihcr opened this issue May 2, 2018 · 1 comment
Closed

porting to mxnet problem #9

pribadihcr opened this issue May 2, 2018 · 1 comment

Comments

@pribadihcr
Copy link

Hi @aiff22,

I am trying to port your code to MxNet. But there is an issue about loss function definition.
For example I can not find the corresponding ops like tf.image.rgb_to_grayscale in MxNet.

Maybe you can guide me. Thanks

@aiff22
Copy link
Owner

aiff22 commented May 8, 2018

Hi @pribadihcr,

While we don't have experience of using MxNet, it looks like some Tensorflow functions are not implemented there. You can solve this problem by implementing them yourself, which in case of rgb_to_grayscale is as follows (python code):

def rgb_to_grayscale(rgb):
     return np.dot(rgb[...,:3], [0.299, 0.587, 0.114])

@aiff22 aiff22 closed this as completed Jun 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants