Skip to content

Commit 9fadfb7

Browse files
committed
sequence diagram
1 parent 5d6ec4b commit 9fadfb7

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,51 @@ CEC_2025_dataset/
5858
- The `no` folder contains MRI images without tumors
5959
- The `CEC_test` folder contains test images for prediction
6060

61+
## Workflow Sequence Diagram
62+
63+
The following sequence diagram illustrates the workflow of the tumor detection system:
64+
65+
```mermaid
66+
sequenceDiagram
67+
participant User
68+
participant train.py
69+
participant run.py
70+
participant test.py
71+
participant Model
72+
participant Dataset
73+
74+
User->>Dataset: Prepare dataset with yes/no folders
75+
User->>train.py: Execute train.py
76+
train.py->>Dataset: Load training images
77+
train.py->>Model: Initialize EfficientNetV2
78+
loop Training Process
79+
train.py->>Model: Forward pass
80+
Model-->>train.py: Loss calculation
81+
train.py->>Model: Backward pass & update weights
82+
end
83+
train.py->>Model: Save trained model (final_model.pth)
84+
train.py-->>User: Training complete
85+
86+
User->>run.py: Execute run.py
87+
run.py->>Model: Load trained model
88+
run.py->>Dataset: Load test images from CEC_test
89+
loop For each test image
90+
run.py->>Model: Predict image
91+
Model-->>run.py: Return prediction & confidence
92+
run.py->>run.py: Classify probability
93+
end
94+
run.py->>User: Save results to output.csv
95+
96+
User->>test.py: Execute test.py (optional)
97+
test.py->>Model: Load trained model
98+
test.py->>Dataset: Load random test images
99+
loop For each test image
100+
test.py->>Model: Predict image
101+
Model-->>test.py: Return prediction
102+
end
103+
test.py->>User: Display accuracy statistics
104+
```
105+
61106
## Running the Model
62107

63108
To run the model on the CEC_test dataset:

0 commit comments

Comments
 (0)