parent
e0df22c385
commit
72f7a68a56
|
@ -48,6 +48,25 @@
|
|||
"from IPython.display import display, Image"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"print(\"wut --- What U Think? SatNOGS Observation AI.\")\n",
|
||||
"print(\"\")\n",
|
||||
"print(\"Alpha stage web site. A model has been built of the DUV mode.\")\n",
|
||||
"print(\"This site has 500+ DUV waterfalls the AI hasn't seen before.\")\n",
|
||||
"print(\"When the page loads, the AI processes three random images and rates them.\")\n",
|
||||
"print(\"\")\n",
|
||||
"print(\"The plan is to have models of all SatNOGS modes (65 at present),\")\n",
|
||||
"print(\"and you can enter an Observation ID and the AI will return a rating.\")\n",
|
||||
"print(\"\")\n",
|
||||
"print(\"Source Code:\")\n",
|
||||
"print(\"https://spacecruft.org/spacecruft/satnogs-wut\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
|
@ -61,7 +80,9 @@
|
|||
"test_dir = os.path.join(base_dir, 'test')\n",
|
||||
"model_file = os.path.join(base_dir, 'models', 'wut-DUV-201912.tf')\n",
|
||||
"print(model_file)\n",
|
||||
"num_test = len(os.listdir(test_dir))"
|
||||
"# Test all\n",
|
||||
"#num_test = len(os.listdir(test_dir))\n",
|
||||
"num_test = 3"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -124,6 +145,16 @@
|
|||
" rating = 'bad'\n",
|
||||
"else:\n",
|
||||
" rating = 'good'\n",
|
||||
"print('Observation: %s' % (rating))\n",
|
||||
"if prediction_bool[1] == False:\n",
|
||||
" rating = 'bad'\n",
|
||||
"else:\n",
|
||||
" rating = 'good'\n",
|
||||
"print('Observation: %s' % (rating))\n",
|
||||
"if prediction_bool[2] == False:\n",
|
||||
" rating = 'bad'\n",
|
||||
"else:\n",
|
||||
" rating = 'good'\n",
|
||||
"print('Observation: %s' % (rating))"
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue