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
Add Xception network #707
Add Xception network #707
Conversation
Xception architecture is created
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
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.
@BradLarson Also could you direct me to resources so that I can learn to run swift build on my side itself.
@diwakar-vsingh - Sorry for the slow reply. In regards to building this on your own, that depends on which platform you wanted to work from. If you're on a Mac, it's pretty straightforward to download a precompiled toolchain and follow these instructions to install it within Xcode. You can then open the directory of your local clone of swift-models directly into Xcode and it will be parsed into a project. Select the ImageClassificationModels build target and you'll be able to build this model and the code around it by itself. For Ubuntu, you can download a precompiled toolchain and follow these instructions to install the appropriate dependencies and to place the Swift toolchain in an accessible location. You can then go to your fork of swift-models and run |
@BradLarson Thanks for the help. I have just set up everything locally on my Mac. I followed the instructions given by you above and everything builds fine locally. I have changed the ConvBlock layer name to ConvBlockModule so that it doesn't conflict with the one define in MobileNetV1.swift. |
I have also added an inference test for the Xception model in inference.swift. |
One thing I couldn't set up is to use the Swift toolchain with the command-line tool. Whenever I run the command |
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.
Thank you for the model implementation, and for the quick response to my comments.
Sorry for the delay in review, but I had to fix something on our CI side to get the presubmit to build this correctly. That's now fixed, and it all builds correctly, so this looks good to go.
@diwakar-vsingh - Honestly, when building at the command line I tend to just use |
Thanks for merging the branch. I'm looking forward to committing more. |
Whenever I try to build it directly from the command line using |
@diwakar-vsingh - If it can't find TensorFlow, odds are that the Swift compiler being found at the command line is the default toolchain within Xcode. Typically, what I do in that case is either set the toolchain that's installed in Xcode to the Swift for TensorFlow toolchain (done by going to the Xcode | Toolchains menu option, then choosing the right one within that menu) and then use |
@BradLarson Fixed it. My path was not correct. I had to resort to using |
I have created the Xception model which is the backbone in the deepLabV3+ model.