Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Adding warnings filter for inference on data sets being empty to avoi…
Browse files Browse the repository at this point in the history
…d user confusion.
  • Loading branch information
jantic committed Jul 9, 2020
1 parent cb78c17 commit edac73e
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 9 deletions.
6 changes: 4 additions & 2 deletions ImageColorizer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"source": [
"from deoldify.visualize import *\n",
"plt.style.use('dark_background')\n",
"torch.backends.cudnn.benchmark=True"
"torch.backends.cudnn.benchmark=True\n",
"import warnings\n",
"warnings.filterwarnings(\"ignore\", category=UserWarning, message=\".*?Your .*? set is empty.*?\")"
]
},
{
Expand Down Expand Up @@ -140,7 +142,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.0"
"version": "3.7.6"
},
"toc": {
"colors": {
Expand Down
6 changes: 4 additions & 2 deletions ImageColorizerArtisticTests.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"outputs": [],
"source": [
"from deoldify.visualize import *\n",
"plt.style.use('dark_background')"
"plt.style.use('dark_background')\n",
"import warnings\n",
"warnings.filterwarnings(\"ignore\", category=UserWarning, message=\".*?Your .*? set is empty.*?\")"
]
},
{
Expand Down Expand Up @@ -3285,7 +3287,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.0"
"version": "3.7.6"
},
"toc": {
"colors": {
Expand Down
4 changes: 3 additions & 1 deletion ImageColorizerColab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@
"outputs": [],
"source": [
"import fastai\n",
"from deoldify.visualize import *"
"from deoldify.visualize import *\n",
"import warnings\n",
"warnings.filterwarnings(\"ignore\", category=UserWarning, message=\".*?Your .*? set is empty.*?\")"
]
},
{
Expand Down
4 changes: 3 additions & 1 deletion ImageColorizerStableTests.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"outputs": [],
"source": [
"from deoldify.visualize import *\n",
"plt.style.use('dark_background')"
"plt.style.use('dark_background')\n",
"import warnings\n",
"warnings.filterwarnings(\"ignore\", category=UserWarning, message=\".*?Your .*? set is empty.*?\")"
]
},
{
Expand Down
6 changes: 4 additions & 2 deletions VideoColorizer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"outputs": [],
"source": [
"from deoldify.visualize import *\n",
"plt.style.use('dark_background')"
"plt.style.use('dark_background')\n",
"import warnings\n",
"warnings.filterwarnings(\"ignore\", category=UserWarning, message=\".*?Your .*? set is empty.*?\")"
]
},
{
Expand Down Expand Up @@ -146,7 +148,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.0"
"version": "3.7.6"
},
"toc": {
"colors": {
Expand Down
4 changes: 3 additions & 1 deletion VideoColorizerColab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@
"import fastai\n",
"from deoldify.visualize import *\n",
"from pathlib import Path\n",
"torch.backends.cudnn.benchmark=True"
"torch.backends.cudnn.benchmark=True\n",
"import warnings\n",
"warnings.filterwarnings(\"ignore\", category=UserWarning, message=\".*?Your .*? set is empty.*?\")"
]
},
{
Expand Down

0 comments on commit edac73e

Please sign in to comment.