Skip to content

Commit

Permalink
Merge pull request #104 from Aydinhamedi/Alpha-b
Browse files Browse the repository at this point in the history
Alpha b
  • Loading branch information
Aydinhamedi authored Jan 20, 2024
2 parents a57165c + 7ab79a8 commit 423dfd5
Show file tree
Hide file tree
Showing 10 changed files with 35,260 additions and 185 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,4 @@ Samples/*

# Exclude temporary Python version file in the GUI interface
/Interface/GUI/Data/Python Ver.tmp
/venv_2
3 changes: 2 additions & 1 deletion .idea/Pneumonia AI Dev.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16,159 changes: 16,030 additions & 129 deletions BETA_E_Model_T&T.ipynb

Large diffs are not rendered by default.

Binary file modified Data/image_SUB_generator.pkl
Binary file not shown.
10 changes: 6 additions & 4 deletions Interface/CLI/CLI.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@echo off
TITLE Pneumonia AI CLI
REM Conf:
TITLE Pneumonia-Detection-Ai-CLI
set python_min_VER=10
set DEBUG=0
set arg=%1
set PV_filepath="Data\\Python Ver.tmp"
Expand Down Expand Up @@ -31,10 +33,10 @@ if "%file_python_version%"=="%current_python_version% " (
:PASS_PVF_CHECK
REM Write the current Python version to the file
echo Checking Python version...
REM Ensure Python version is 3.9 or higher
REM Ensure Python version is %python_min_VER% or higher
FOR /F "tokens=2 delims=." %%i IN ('python --version 2^>^&1') DO set python_version_major=%%i
if %python_version_major% LSS 9 (
echo Warning: Please update your Python version to 3.9.x or higher!
if %python_version_major% LSS %python_min_VER% (
echo Warning: Please update your Python version to 3.%python_min_VER%.x or higher!
pause
exit /B
)
Expand Down
19,218 changes: 19,177 additions & 41 deletions Model_T&T.ipynb

Large diffs are not rendered by default.

Binary file removed Samples/TSR400_y2023_m12_d21-h15_m25_s44.tar_STR.gz
Binary file not shown.
Binary file not shown.
49 changes: 44 additions & 5 deletions env/Test_ENV3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,33 @@
"cells": [
{
"cell_type": "code",
"execution_count": 22,
"execution_count": 1,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"c:\\Users\\aydin\\Desktop\\Pneumonia AI Dev\\venv\\lib\\site-packages\\tensorflow_addons\\utils\\tfa_eol_msg.py:23: UserWarning: \n",
"\n",
"TensorFlow Addons (TFA) has ended development and introduction of new features.\n",
"TFA has entered a minimal maintenance and release mode until a planned end of life in May 2024.\n",
"Please modify downstream libraries to take dependencies from other repositories in our TensorFlow community (e.g. Keras, Keras-CV, and Keras-NLP). \n",
"\n",
"For more information see: https://github.com/tensorflow/addons/issues/2807 \n",
"\n",
" warnings.warn(\n",
"c:\\Users\\aydin\\Desktop\\Pneumonia AI Dev\\venv\\lib\\site-packages\\tensorflow_addons\\utils\\ensure_tf_install.py:53: UserWarning: Tensorflow Addons supports using Python ops for all Tensorflow versions above or equal to 2.12.0 and strictly below 2.15.0 (nightly versions are not supported). \n",
" The versions of TensorFlow you are currently using is 2.10.1 and is not supported. \n",
"Some things might work, some things might not.\n",
"If you were to encounter a bug, do not file an issue.\n",
"If you want to make sure you're using a tested and supported configuration, either change the TensorFlow version or the TensorFlow Addons's version. \n",
"You can find the compatibility matrix in TensorFlow Addon's readme:\n",
"https://github.com/tensorflow/addons\n",
" warnings.warn(\n"
]
}
],
"source": [
"# Libs\n",
"import os\n",
Expand Down Expand Up @@ -84,10 +108,25 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": []
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[0m\u001b[0m\u001b[0;33mImproved model accuracy from\u001b[0m\u001b[0;32m 0.458953\u001b[0m\u001b[0;33m to \u001b[0m\u001b[0;32m 0.458953\u001b[0m\u001b[0;33m. \u001b[0m\u001b[0;96mSaving model.\u001b[0m\n"
]
}
],
"source": [
"# Copyright (c) 2024 Aydin Hamedi\n",
"# \n",
"# This software is released under the MIT License.\n",
"# https://opensource.org/licenses/MIT\n",
"\n",
"print_Color_V2(f'<yellow>Improved model accuracy from<green>{0.4589532546:10f}<yellow> to <green>{0.4589532546:10f}<yellow>. <light_cyan>Saving model.')"
]
}
],
"metadata": {
Expand Down
5 changes: 0 additions & 5 deletions history_vis.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# Copyright (c) 2023 Aydin Hamedi
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT

from Utils.Other import *
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
Expand Down

0 comments on commit 423dfd5

Please sign in to comment.