From 9190bc91656649bc03c2d556a7103cac22803329 Mon Sep 17 00:00:00 2001 From: Remy Gakwaya Date: Sat, 6 Apr 2024 21:13:29 -0600 Subject: [PATCH 1/3] start fastbook with faststart --- .gitignore | 1 + README.md | 12 ++++++++++++ os_linux_mac_start.sh | 9 +++++++++ os_win_start.ps1 | 9 +++++++++ requirements.txt | Bin 136 -> 6274 bytes 5 files changed, 31 insertions(+) create mode 100644 os_linux_mac_start.sh create mode 100644 os_win_start.ps1 diff --git a/.gitignore b/.gitignore index e5a65d9f1..5fa77b105 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ __pycache__/ .last_checked .gitconfig .ipynb_checkpoints/ +env \ No newline at end of file diff --git a/README.md b/README.md index ac900394c..0f34d9fea 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,18 @@ Instead of cloning this repo and opening it on your machine, you can read and wo You can open any chapter of the book in Colab by clicking on one of these links: [Introduction to Jupyter](https://colab.research.google.com/github/fastai/fastbook/blob/master/app_jupyter.ipynb) | [Chapter 1, Intro](https://colab.research.google.com/github/fastai/fastbook/blob/master/01_intro.ipynb) | [Chapter 2, Production](https://colab.research.google.com/github/fastai/fastbook/blob/master/02_production.ipynb) | [Chapter 3, Ethics](https://colab.research.google.com/github/fastai/fastbook/blob/master/03_ethics.ipynb) | [Chapter 4, MNIST Basics](https://colab.research.google.com/github/fastai/fastbook/blob/master/04_mnist_basics.ipynb) | [Chapter 5, Pet Breeds](https://colab.research.google.com/github/fastai/fastbook/blob/master/05_pet_breeds.ipynb) | [Chapter 6, Multi-Category](https://colab.research.google.com/github/fastai/fastbook/blob/master/06_multicat.ipynb) | [Chapter 7, Sizing and TTA](https://colab.research.google.com/github/fastai/fastbook/blob/master/07_sizing_and_tta.ipynb) | [Chapter 8, Collab](https://colab.research.google.com/github/fastai/fastbook/blob/master/08_collab.ipynb) | [Chapter 9, Tabular](https://colab.research.google.com/github/fastai/fastbook/blob/master/09_tabular.ipynb) | [Chapter 10, NLP](https://colab.research.google.com/github/fastai/fastbook/blob/master/10_nlp.ipynb) | [Chapter 11, Mid-Level API](https://colab.research.google.com/github/fastai/fastbook/blob/master/11_midlevel_data.ipynb) | [Chapter 12, NLP Deep-Dive](https://colab.research.google.com/github/fastai/fastbook/blob/master/12_nlp_dive.ipynb) | [Chapter 13, Convolutions](https://colab.research.google.com/github/fastai/fastbook/blob/master/13_convolutions.ipynb) | [Chapter 14, Resnet](https://colab.research.google.com/github/fastai/fastbook/blob/master/14_resnet.ipynb) | [Chapter 15, Arch Details](https://colab.research.google.com/github/fastai/fastbook/blob/master/15_arch_details.ipynb) | [Chapter 16, Optimizers and Callbacks](https://colab.research.google.com/github/fastai/fastbook/blob/master/16_accel_sgd.ipynb) | [Chapter 17, Foundations](https://colab.research.google.com/github/fastai/fastbook/blob/master/17_foundations.ipynb) | [Chapter 18, GradCAM](https://colab.research.google.com/github/fastai/fastbook/blob/master/18_CAM.ipynb) | [Chapter 19, Learner](https://colab.research.google.com/github/fastai/fastbook/blob/master/19_learner.ipynb) | [Chapter 20, conclusion](https://colab.research.google.com/github/fastai/fastbook/blob/master/20_conclusion.ipynb) +# FastStart +## Basic Windows or Mac Computer +If you are running this in basic computer and you are using pip here is what you should do to run this book. +For mac or linux +```bash +os_linux_mac_start +``` + +For Windows +```bash +os_win_start.ps1 +``` ## Contributions diff --git a/os_linux_mac_start.sh b/os_linux_mac_start.sh new file mode 100644 index 000000000..4f1185975 --- /dev/null +++ b/os_linux_mac_start.sh @@ -0,0 +1,9 @@ +python3 -m venv env + +source env/bin/activate + +python3 -m pip --upgrade pip + +pip install -r requirements.txt + +jupyter notebook --no-browser diff --git a/os_win_start.ps1 b/os_win_start.ps1 new file mode 100644 index 000000000..ff0047607 --- /dev/null +++ b/os_win_start.ps1 @@ -0,0 +1,9 @@ +python3 -m venv env + +.\env\Scripts\Activate.ps1 + +python3 -m pip install --upgrade pip + +pip install -r .\requirements.txt + +jupyter notebook --no-browser \ No newline at end of file diff --git a/requirements.txt b/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gf!;JObXtb$R-^8i}wRfki4R^nw zderyBZLY?dErZ>rzj=a$ZsTk}bWv-izcLm)eC!X~D;onh5m=Qi3Eo!;Zfs-{Z>>LF zoaZ@Z@9-AlnP6FSzAwvN$~Q}*U)j#iur3vmTOa3@n^X%`lT0%Eaxe2_sd&v{HY;yo z*7B;`*St-!y%M{*Vz_UfcVeu2>Lv>8U}OW9WQU@2n3J*bx?{plTD^ICbA@qCQt!yS zQXSkIVQud1wwdga_nGYF-csl6q{}Z7<>&^wqy3L z8Y7v?~=hrGVAHe2^?p-@SArSHQwNxmbvAqA@M~K zc89AqJncGiwDo01!u7nn#QW%7$nLcKyc3hnV>%6WntPq2l|I`FGtazJ9lZI^XPhIt z7n7eD5E=JVqu$BdUV6wC=eAZE$!@t)ccV(-32!Ob^pS;=j%VeWE&8eGM6SO(eUcVB z-b6LPp5C8tSoS0UF?H$e%!QCWk2e{?>1g7|UT2;pwq+Ligqg*=4>H1LZ0xS^biBR3 zWnZTMy0@aob!RPpdxITsvS7fz_YrngrhsF}bHvy)sGd1~%QHzw+_gQFtuzdjY zO!mkuuoiCZ-XTEtrfe*U1}vol;D2r~?lH(l%5Q|-L9t!$zx8dgEA9XH@ATUX#g#W= z#)>8Pt1BV;R`Nv`wC`q%D-#~O+Z@zM-C6RkWZ22sIajI@at|xKEx6iJ4c3Gtn+9*| zrX^d+h_m&iXzlgkO?7gK2FHn0`u3gBz;GnYg&=*>sqY-bDa*X E3yV9MGXMYp literal 136 zcmWm3K@Nj33;@Bq|B@)>4qvH^;|8n2M6sKyydHX6&A!kaWtpd#VuI4KZ9`6w_WMdM z>;^k}tA|%vLD$S Date: Sat, 6 Apr 2024 21:44:33 -0600 Subject: [PATCH 2/3] fastStart on linux --- README.md | 3 ++- os_linux_mac_start.sh | 1 - requirements.txt | Bin 6274 -> 1866 bytes 3 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 os_linux_mac_start.sh diff --git a/README.md b/README.md index 0f34d9fea..841eb33e5 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,8 @@ You can open any chapter of the book in Colab by clicking on one of these links: If you are running this in basic computer and you are using pip here is what you should do to run this book. For mac or linux ```bash -os_linux_mac_start +chmod a+x os_linux_mac_start.sh +os_linux_mac_start.sh ``` For Windows diff --git a/os_linux_mac_start.sh b/os_linux_mac_start.sh old mode 100644 new mode 100755 index 4f1185975..aac9d6f92 --- a/os_linux_mac_start.sh +++ b/os_linux_mac_start.sh @@ -2,7 +2,6 @@ python3 -m venv env source env/bin/activate -python3 -m pip --upgrade pip pip install -r requirements.txt diff --git a/requirements.txt b/requirements.txt index cf13e70b61509d6952fdf5babf1562e07b5e3f38..e5c1963a0bf60025a9df118eb101c2a2efe3ccb3 100644 GIT binary patch literal 1866 zcmZWqO_SR;488NeNTV-%?Sl^OvD3_?lU#E0P!uF{O_5xZ+O_lR`#{;=w7H1@2tGUj zPtxAB>-(;3%Sy;FJKGd$nsnbcZCU@_+(M*pPH_bsp?%q>gbSNY0F!#evL!#)7zNXiA79AbBP zgbmXgX}m4~SCucY&{dI7+Sxe(9AD((=}HQa?Yxy&i%G`x8l8>mOpDBw9dUbl8!g{K zc5$w2PMRw|r{wW8v9Bt3g3s3s@&(!TXpy2V_d@&Ig@R?S_GNPfkFcb(L()SDE)nZ* zA9|cAfn1b?dUbT;imHH_$tr7Z>^C z(I$d&^qO&Oktby|Lb+JX#iuosxkJmEr!7)=->RsYsYim%d;+#bTWRv6yH6-a4tWC6 zmHQ1?PX0D84}`xYW7p?1&F&K?d!CKK4b&yR$Z%QxH#wnvP=ps2nY?ky=%LWoXbT4- z(fCEjwDOU!Ho^{%vhM`J;4G>G5tveD(hd`kJ`5N(-Z)D!6?qSN%aIfuSeIyU?vihD z-uw9!&-%V3op8t-^hjXl1%y_@OLdX+HtoExUfR*ANgHs8pl!T8_7Cq=SgcNXx?(VZ zrNdO=f{}^Qjhf?mdtnQ1p>(D-K3j@Px%uqzsYuS5i$)HnplgMX*f=c04k-`9ryJrF z#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*>sqY-bDa*X E3yV9MGXMYp From b2f083978a66d77babe89a072e07e02fb9da351a Mon Sep 17 00:00:00 2001 From: eligapris Date: Sun, 7 Apr 2024 01:48:28 -0600 Subject: [PATCH 3/3] faststart on mac and linux --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 841eb33e5..94dc5d1bd 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,7 @@ You can open any chapter of the book in Colab by clicking on one of these links: If you are running this in basic computer and you are using pip here is what you should do to run this book. For mac or linux ```bash -chmod a+x os_linux_mac_start.sh -os_linux_mac_start.sh +source os_linux_mac_start.sh ``` For Windows