mirror of
https://github.com/jantic/DeOldify.git
synced 2026-08-28 09:34:19 +08:00
Adding warnings filter for inference on data sets being empty to avoid user confusion.
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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.*?\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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.*?\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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.*?\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user