hpi-xnor / BMXNet

(New version is out: https://github.com/hpi-xnor/BMXNet-v2) BMXNet: An Open-Source Binary Neural Network Implementation Based on MXNet
Apache License 2.0
349 stars 95 forks source link

Can an existing MXNet 1.0.0 installation be used to set up BMXNet ? #48

Closed samfux84 closed 5 years ago

samfux84 commented 6 years ago

Is it possible to build BMXNet, with an already existing MXNet 1.0.0 installation from https://github.com/apache/incubator-mxnet, or do I need to build MXNet form this repository in any case ?

yanghaojin commented 6 years ago

Yes, you need to copy MXNET_ROOT/smd_hpi folder into yout MXNET_ROOT and adapt 2 files:

simonmaurer commented 6 years ago

@yanghaojin would you recommend to fork BMXNet and update to MXNet 1.1.0/1.2.0 or is the gap too large (within given time limits) ? as of 1.1.0 many operators have been moved from MXNET_ROOT/src/operator to MXNET_ROOT/src/operator/nn for example

yanghaojin commented 6 years ago

I don't think it is a big problem to do the upgrade, the only file we changed in MXNET_ROOT/src/operator is the mshadow_op.h. Please try to do the upgrade, it would be really kind if you could post some report here, thanks.

jacky4323 commented 5 years ago

after I clone https://github.com/apache/incubator-mxnet and follow your suggestion

and because many operators have been moved from MXNET_ROOT/src/operator to MXNET_ROOT/src/operator/nn for example,so I revised inculde path root to this directory and get some errors like below

image image

jacky4323 commented 5 years ago

Hi, @yanghaojin

Is there any updated news for BMXNet update to MXNet 1.2.0/1.3.0 ? thank you!

yanghaojin commented 5 years ago

we are preparing huge update including mxnet 1.3, gluon etc.

发自我的小米手机 在 jacky4323 notifications@github.com,2018年10月13日 04:56写道:

Hi, @yanghaojinhttps://github.com/yanghaojin

Is there any updated news for BMXNet update to MXNet 1.2.0/1.3.0 ? thank you!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/hpi-xnor/BMXNet/issues/48#issuecomment-429505680, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWO10Ej3aMERl965eOWTrcDPnf4ArQwYks5ukVZ4gaJpZM4UcOu5.

simonmaurer commented 5 years ago

@yanghaojin in other words copying mshadow_op.h (which you adjusted) to the cloned repo (MXNet incubating 1.2.0-1.3.0) will not suffice because there were some code changes as well w.r.t that file to comply with other operator changes ? how can I support (maybe @jacky4323 would be up for it as well)) the upgrade process? I'm very interested in using an upgraded BMXnet for research purposes

simonmaurer commented 5 years ago

we are preparing huge update including mxnet 1.3, gluon etc. 发自我的小米手机 在 jacky4323 notifications@github.com,2018年10月13日 04:56写道: Hi, @yanghaojinhttps://github.com/yanghaojin Is there any updated news for BMXNet update to MXNet 1.2.0/1.3.0 ? thank you! — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub<#48 (comment)>, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWO10Ej3aMERl965eOWTrcDPnf4ArQwYks5ukVZ4gaJpZM4UcOu5.

@yanghaojin any news on this?

Jopyth commented 5 years ago

@simonmaurer The new (beta) version is out now and can be found here: https://github.com/hpi-xnor/BMXNet-v2

simonmaurer commented 5 years ago

@simonmaurer The new (beta) version is out now and can be found here: https://github.com/hpi-xnor/BMXNet-v2

@Jopyth oh, really nice. thank you for publishing! I've already had a look and went through your papers ;) interesting work - Learning to Train a Binary Neural Network https://arxiv.org/pdf/1809.10463 and Training Competitive Binary Neural Networks from Scratch https://128.84.21.199/pdf/1812.01965 an issue arose that I've posted via the new repo v2 and relinked here: https://github.com/hpi-xnor/BMXNet-v2/issues/1