Adding warnings filter for inference on data sets being empty to avoid user confusion.

This commit is contained in:
Jason Antic
2020-07-09 14:32:32 -07:00
parent cb78c17af4
commit edac73edf1
6 changed files with 21 additions and 9 deletions
+4 -2
View File
@@ -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.*?\")"
]
},
{
@@ -140,7 +142,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.0"
"version": "3.7.6"
},
"toc": {
"colors": {
+4 -2
View File
@@ -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.*?\")"
]
},
{
@@ -3285,7 +3287,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.0"
"version": "3.7.6"
},
"toc": {
"colors": {
+3 -1
View File
@@ -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.*?\")"
]
},
{
+3 -1
View File
@@ -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.*?\")"
]
},
{
+4 -2
View File
@@ -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.*?\")"
]
},
{
@@ -146,7 +148,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.0"
"version": "3.7.6"
},
"toc": {
"colors": {
+3 -1
View File
@@ -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.*?\")"
]
},
{