Set of Jupyter notebooks to learn deep learning for physics and photonics.
You can run these tutorials either in 1. Your Own Laptop or in 2. Google Colab, see the two subsections below:
These tutorials are coded in Jupyter notebooks with Python language. Jupyter is included in the Anaconda environment, so we strongly recommend downloading and installing Anaconda. Open Anaconda on your computer and install Jupyter Notebook from the Anaconda Navigator. Also install the Powershell prompt, if it is not already (it is not needed, but it can be useful in some situations).
You can install the dependencies by running the 00_install_dependencies.ipynb notebook. So, follow the next section below to run it as a demo, and then you will be ready for all the rest tutorials.
Download the tutorials from the course web at UPC-Atenea intranet.
Alternativelly , you can download the file you want from this GitHub repository
(those files on the list above ended with .ipynb
)
by means of entering and click the Download notebook
button on top of every file.
Probably, you should [RightClick]+SaveAs
to download the content in a
certain file. Make sure that it ends with the .ipynb
extension.
Take into a count that if one file is in GitHub, but it is not in the UPC_Atenea yet, it is probably not in its final version. Use only 'master' branch (if you do not know what does branch mean, forget it).
We recommend to download and work on all tutorial in a single specific directory of your computer.
Then, open Anaconda and launch the Jupyter Notebooks App from the Anaconda Navigator.
A webpage should be opened in your internet browser with a kind of file browser.
Find here that specific folder where the tutorials are located and click on one of them.
Now, the tutorial should be opened in a new tab of your web browser.
You can edit ([DoubleClick]
or [Enter]
) and run ([Shift]+[Enter]
)
any cell in the Notebook.
Check the Jupyter Documentation for detailed information.
If you prefer do not run these tutorials in your own computer, you can run any tutorial on this repository in Google Colab (excepting for the 00_installing_dependencies.ipynb).
Google Colab is a free service provided by Google that allows anyone to run Jupyter notebooks in the cloud. It is very easy to use, and it is a good option if you do not want to install anything in your computer.
You just need to go in to that specific tutorial (also from the pdf version) and
click on the Run in Google Colab
button on top of the file.
That's all!
- All is ready to run there, from the very beginning.
- You have one GPU (usually a Tesla4) to get faster. (Not needed for this course)
- You need a Google account to use it.
- Only one notebook can run at once (in the free version).
- Probably, you cannot see the equation numbers (useful specially in the second tutorial).
- The code is not in your laptop, so you have to take care to save your changes.
- You need a quite stable internet connection.
The last two are the most important cons, have them in mind.
Check also the Jupyter Documentation for detailed information.