-
Notifications
You must be signed in to change notification settings - Fork 25
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
Theano/Keras/etc implementations #6
Comments
Hi @braingineer, Sounds good. The way to do it would be to have implementations in different frameworks, I think. So we'd have cnn/caffe.py, cnn/theano.py, etc. and then load the appropriate module based on availability of the relevant framework. We could then have a CNN parent class that the framework-specific implementations inherit from. The place to start would be here, I guess: https://github.com/douwekiela/mmfeat/blob/master/mmfeat/cnn/__init__.py. Maybe just start with AlexNet? Cheers! |
Hi Douwe, Sure! I've looked around and I found various people having implementations with keras. Rather than reimplementing the wheel, I'm going to try to splice things together. Pedagogically, would you want to have the code incorporated in or used as a submodule? I haven't really used caffe before, so I have a quick question. Where do you handle the preprocessing and stuff, or does caffe automatically do that? Your Given the stuff above, I should be able to submit a PR within the next day or so. I'll be traveling for a week, so I'll be pretty dormant until the end of August, I think. I have some other thoughts about things that I would find super useful in this library:
Best, |
Hi Brian, Sorry for the late reply, I was away for the weekend. Pedagogically, would you want to have the code incorporated in or used as a submodule? Where do you handle the preprocessing and stuff, or does caffe automatically do that? Your fit method just runs the network forward on all of the images, right? and then it caches the resulting layer activations in self.descriptors? I have some other thoughts about things that I would find super useful in this library Thanks! Douwe |
Hi @douwekiela
Looking through the code base. I think maybe the fastest way to get something up and running is to pick some core function that could be good to have ported over. Once we have a minimum working example, we can look to flesh it out from there. What do you think that would be?
Brian
The text was updated successfully, but these errors were encountered: