saikAIML commited on
Commit
e2cfb36
Β·
verified Β·
1 Parent(s): 8055d87

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +50 -45
README.md CHANGED
@@ -59,9 +59,58 @@ This project requires Python and Conda for setting up the environment.
59
  ```bash
60
  pip install -r requirements.txt
61
  ```
62
-
63
  ---
64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  ## πŸ“‚ Dataset
66
 
67
  - **Source:** STORK Framework
@@ -124,50 +173,6 @@ The dataset is divided as follows:
124
  πŸ‘¨β€πŸŽ“ **Amal Mathew**
125
  πŸ“§ AM252@myscc.ca | [GitHub](https://github.com/Amalmathew5)
126
 
127
- ---
128
-
129
- ## ▢️ Steps to Follow
130
-
131
- ### **Testing the Model:**
132
- 1. **Navigate to the `slim` directory:**
133
- ```bash
134
- cd scripts/slim
135
- ```
136
-
137
- 2. **Run the test script:**
138
- ```bash
139
- python tst.py
140
- ```
141
-
142
- 3. **To test different images, modify `tst.py`:**
143
- - Open `tst.py` in a text editor.
144
- - Locate the line with `predict_image_label`.
145
- - Change the file path to a different embryo image.
146
-
147
- Example:
148
- ```python
149
- from pred import predict_image_label
150
- print("**************", predict_image_label("result", "../../Images/test/good_23765483_-15_3AA.jpg", "v1"), "**************")
151
- ```
152
-
153
- - Save the file and rerun:
154
- ```bash
155
- python tst.py
156
- ```
157
-
158
- ### **Training the Model (Optional):**
159
- 1. Download **pre-trained Inception-V1** models from [TensorFlow Pretrained Models](https://github.com/wenwei202/terngrad/tree/master/slim#pre-trained-models).
160
- 2. Modify `load_inception_v1.sh` to set correct paths.
161
- 3. Run the script:
162
- ```bash
163
- ./run/load_inception_v1.sh
164
- ```
165
- OR use Python:
166
- ```bash
167
- python train_image_classifier.py --train_dir=scripts/result --dataset_name=embryo --dataset_split_name=train --dataset_dir=scripts/process --model_name=inception_v1 --checkpoint_path=run/checkpoint/inception_v1.ckpt --checkpoint_exclude_scopes=InceptionV1/Logits --max_number_of_steps=5000 --batch_size=32 --learning_rate=0.01 --save_interval_secs=100 --save_summaries_secs=100 --log_every_n_steps=300 --optimizer=rmsprop --weight_decay=0.00004 --clone_on_cpu=True
168
- ```
169
-
170
- ---
171
 
172
  🎯 **Final Notes:**
173
  - The model is pre-trained, so **only testing is required** unless you want to retrain it.
 
59
  ```bash
60
  pip install -r requirements.txt
61
  ```
 
62
  ---
63
 
64
+ ▢️ Steps to Follow
65
+
66
+
67
+ ### **Training the Model (Optional):**
68
+ > The model is already trained on Inception-V1 with the dataset and the weights are available at scripts/slim/result this is if you want use a different model
69
+ 1. Download **pre-trained Inception-V1** models from [TensorFlow Pretrained Models](https://github.com/wenwei202/terngrad/tree/master/slim#pre-trained-models).
70
+ 2. Create the process directory :
71
+ ```bash
72
+ python convert.py ../Images/train process/ 0
73
+ ```
74
+ 4. Modify `load_inception_v1.sh` to set correct paths.
75
+ 5. Run the script:
76
+ ```bash
77
+ ./run/load_inception_v1.sh
78
+ ```
79
+ OR use Python:
80
+ ```bash
81
+ python train_image_classifier.py --train_dir=scripts/result --dataset_name=embryo --dataset_split_name=train --dataset_dir=scripts/process --model_name=inception_v1 --checkpoint_path=run/checkpoint/inception_v1.ckpt --checkpoint_exclude_scopes=InceptionV1/Logits --max_number_of_steps=5000 --batch_size=32 --learning_rate=0.01 --save_interval_secs=100 --save_summaries_secs=100 --log_every_n_steps=300 --optimizer=rmsprop --weight_decay=0.00004 --clone_on_cpu=True
82
+ ```
83
+
84
+
85
+
86
+
87
+ ### **Testing the Model:**
88
+ 1. **Navigate to the `slim` directory:**
89
+ ```bash
90
+ cd scripts/slim
91
+ ```
92
+
93
+ 2. **Run the test script:**
94
+ ```bash
95
+ python tst.py
96
+ ```
97
+
98
+ 3. **To test different images, modify `tst.py`:**
99
+ - Open `tst.py` in a text editor.
100
+ - Locate the line with `predict_image_label`.
101
+ - Change the file path to a different embryo image.
102
+
103
+ Example:
104
+ ```python
105
+ from pred import predict_image_label
106
+ print("**************", predict_image_label("result", "../../Images/test/good_23765483_-15_3AA.jpg", "v1"), "**************")
107
+ ```
108
+
109
+ - Save the file and rerun:
110
+ ```bash
111
+ python tst.py
112
+ ```
113
+
114
  ## πŸ“‚ Dataset
115
 
116
  - **Source:** STORK Framework
 
173
  πŸ‘¨β€πŸŽ“ **Amal Mathew**
174
  πŸ“§ AM252@myscc.ca | [GitHub](https://github.com/Amalmathew5)
175
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
 
177
  🎯 **Final Notes:**
178
  - The model is pre-trained, so **only testing is required** unless you want to retrain it.