From 19a4636beebe832db2a02d2366ea84cd0fda480b Mon Sep 17 00:00:00 2001 From: Joseph Sherrill Date: Sat, 26 Nov 2022 13:58:46 -0500 Subject: [PATCH 1/7] Update 2_pre_trained_networks.ipynb --- p1ch2/2_pre_trained_networks.ipynb | 104 ++++++++++++++++++++++++----- 1 file changed, 86 insertions(+), 18 deletions(-) diff --git a/p1ch2/2_pre_trained_networks.ipynb b/p1ch2/2_pre_trained_networks.ipynb index 50ca0c8..70bef5f 100644 --- a/p1ch2/2_pre_trained_networks.ipynb +++ b/p1ch2/2_pre_trained_networks.ipynb @@ -3,7 +3,11 @@ { "cell_type": "code", "execution_count": 1, - "metadata": {}, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, "outputs": [], "source": [ "from torchvision import models" @@ -12,7 +16,11 @@ { "cell_type": "code", "execution_count": 2, - "metadata": {}, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, "outputs": [ { "data": { @@ -72,7 +80,11 @@ { "cell_type": "code", "execution_count": 3, - "metadata": {}, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, "outputs": [], "source": [ "alexnet = models.AlexNet()" @@ -81,7 +93,11 @@ { "cell_type": "code", "execution_count": 4, - "metadata": {}, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, "outputs": [], "source": [ "resnet = models.resnet101(pretrained=True)" @@ -90,7 +106,11 @@ { "cell_type": "code", "execution_count": 5, - "metadata": {}, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, "outputs": [ { "data": { @@ -438,7 +458,11 @@ { "cell_type": "code", "execution_count": 6, - "metadata": {}, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, "outputs": [], "source": [ "from torchvision import transforms\n", @@ -455,7 +479,11 @@ { "cell_type": "code", "execution_count": 7, - "metadata": {}, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, "outputs": [], "source": [ "from PIL import Image\n", @@ -465,7 +493,11 @@ { "cell_type": "code", "execution_count": 8, - "metadata": {}, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, "outputs": [ { "data": { @@ -486,7 +518,11 @@ { "cell_type": "code", "execution_count": 9, - "metadata": {}, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, "outputs": [], "source": [ "img_t = preprocess(img)" @@ -495,7 +531,11 @@ { "cell_type": "code", "execution_count": 10, - "metadata": {}, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, "outputs": [], "source": [ "import torch\n", @@ -505,7 +545,11 @@ { "cell_type": "code", "execution_count": 11, - "metadata": {}, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, "outputs": [ { "data": { @@ -853,7 +897,11 @@ { "cell_type": "code", "execution_count": 12, - "metadata": {}, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, "outputs": [ { "data": { @@ -1074,7 +1122,11 @@ { "cell_type": "code", "execution_count": 13, - "metadata": {}, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, "outputs": [], "source": [ "with open('../data/p1ch2/imagenet_classes.txt') as f:\n", @@ -1084,7 +1136,11 @@ { "cell_type": "code", "execution_count": 14, - "metadata": {}, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, "outputs": [], "source": [ "_, index = torch.max(out, 1)" @@ -1093,7 +1149,11 @@ { "cell_type": "code", "execution_count": 15, - "metadata": {}, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, "outputs": [ { "data": { @@ -1114,7 +1174,11 @@ { "cell_type": "code", "execution_count": 16, - "metadata": {}, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, "outputs": [ { "data": { @@ -1139,7 +1203,11 @@ { "cell_type": "code", "execution_count": null, - "metadata": {}, + "metadata": { + "pycharm": { + "name": "#%%\n" + } + }, "outputs": [], "source": [] } @@ -1165,4 +1233,4 @@ }, "nbformat": 4, "nbformat_minor": 2 -} +} \ No newline at end of file From 0c1664b3e496e63e7a29218cb353120ae6ab0997 Mon Sep 17 00:00:00 2001 From: Joseph Sherrill Date: Tue, 13 Jun 2023 16:42:23 -0400 Subject: [PATCH 2/7] tools fake --- .gitignore | 2 ++ .vscode/settings.json | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 70111ee..0eafe63 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .DS_Store tools *_old + +.fake \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..accdd4e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,11 @@ +{ + "python.languageServer": "Pylance", + "python.analysis.typeCheckingMode": "basic", + "typescript.tsserver.maxTsServerMemory": 3072, + "typescript.tsserver.watchOptions": { + "watchFile": "dynamicPriorityPolling" + }, + "javascript.suggest.includeAutomaticOptionalChainCompletions": false, + "debug.saveBeforeStart": "none", + "vscode-as-git-mergetool.settingsAssistantOnStartup": false +} \ No newline at end of file From 6f5b531dbb98d462b3b7ea902454089102737dff Mon Sep 17 00:00:00 2001 From: Joseph Sherrill Date: Tue, 13 Jun 2023 16:51:15 -0400 Subject: [PATCH 3/7] merge tool false --- .vscode/settings.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index accdd4e..b9b51e9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,5 +7,6 @@ }, "javascript.suggest.includeAutomaticOptionalChainCompletions": false, "debug.saveBeforeStart": "none", - "vscode-as-git-mergetool.settingsAssistantOnStartup": false + "vscode-as-git-mergetool.settingsAssistantOnStartup": false, + "c3.welcome.showFeatureHighlight": false } \ No newline at end of file From e8f0b97944ddea406c69dbc32c38a51dfbea9c73 Mon Sep 17 00:00:00 2001 From: Joseph Sherrill Date: Tue, 13 Jun 2023 18:43:39 -0400 Subject: [PATCH 4/7] Copilot Settings "javascript.suggest.includeAutomaticOptionalChainCompletions": false, "debug.saveBeforeStart": "none", "vscode-as-git-mergetool.settingsAssistantOnStartup": false, "c3.welcome.showFeatureHighlight": false "c3.welcome.showFeatureHighlight": false, "git-blame.gitWebUrl": "" --- .vscode/settings.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index b9b51e9..81f1225 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,5 +8,6 @@ "javascript.suggest.includeAutomaticOptionalChainCompletions": false, "debug.saveBeforeStart": "none", "vscode-as-git-mergetool.settingsAssistantOnStartup": false, - "c3.welcome.showFeatureHighlight": false + "c3.welcome.showFeatureHighlight": false, + "git-blame.gitWebUrl": "" } \ No newline at end of file From 5277003d98640173725ef5f5f4b88cf26d98acc8 Mon Sep 17 00:00:00 2001 From: Joseph Sherrill Date: Tue, 13 Jun 2023 20:55:04 -0400 Subject: [PATCH 5/7] Create Copilot --- .vscode/settings.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 81f1225..fdce722 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,5 +9,6 @@ "debug.saveBeforeStart": "none", "vscode-as-git-mergetool.settingsAssistantOnStartup": false, "c3.welcome.showFeatureHighlight": false, - "git-blame.gitWebUrl": "" + "git-blame.gitWebUrl": "", + "workbench.view.alwaysShowHeaderActions": true } \ No newline at end of file From cecddc2357ddde62de21228a3dff97aec0801eb7 Mon Sep 17 00:00:00 2001 From: Joseph Sherrill Date: Wed, 14 Jun 2023 20:37:58 -0400 Subject: [PATCH 6/7] Create Copilot --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 0eafe63..fc36b08 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ tools *_old -.fake \ No newline at end of file +.fake +Copilot/ From fa6883c13fd7c58540b95a44ab860ad962dae258 Mon Sep 17 00:00:00 2001 From: Joseph Sherrill <51934639+Creativity-Spot@users.noreply.github.com> Date: Mon, 3 Jul 2023 09:05:54 -0400 Subject: [PATCH 7/7] Create virtualenv --- requirements.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 0e24fbf..b2cd5cf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,9 +4,9 @@ # # And then the virtual environment can be created by running: # -# python3 -m venv .venv -# .venv/bin/pip install --upgrade pip -# .venv/bin/pip install -r requirements.txt +python3 -m venv .venv +.venv/bin/pip install --upgrade pip +.venv/bin/pip install -r requirements.txt # # Then use .venv/bin/python to run the various training scripts.