Spaces:
Sleeping
Sleeping
modified paths
Browse files- pages/Dataset.py +2 -2
- pages/Upload_and_Predict.py +1 -1
pages/Dataset.py
CHANGED
@@ -44,8 +44,8 @@ with tab2:
|
|
44 |
st.markdown("### 📊 Training Data Class Distribution")
|
45 |
|
46 |
# CSV path and image folder path (adjust as needed)
|
47 |
-
CSV_PATH = r"D
|
48 |
-
IMG_FOLDER = r"D
|
49 |
|
50 |
# Load CSV
|
51 |
df = pd.read_csv(CSV_PATH)
|
|
|
44 |
st.markdown("### 📊 Training Data Class Distribution")
|
45 |
|
46 |
# CSV path and image folder path (adjust as needed)
|
47 |
+
CSV_PATH = r"D:\DR_Classification\dataset\DR_grading.csv"
|
48 |
+
IMG_FOLDER = r"D:\DR_Classification\dataset\images" # Folder where all images are stored
|
49 |
|
50 |
# Load CSV
|
51 |
df = pd.read_csv(CSV_PATH)
|
pages/Upload_and_Predict.py
CHANGED
@@ -57,7 +57,7 @@ class_names = ['No DR', 'Mild', 'Moderate', 'Severe', 'Proliferative DR']
|
|
57 |
|
58 |
# Load sample images from CSV with proper label mapping
|
59 |
@st.cache_data
|
60 |
-
def load_sample_images_from_csv(csv_path=r'D
|
61 |
df = pd.read_csv(csv_path)
|
62 |
samples = defaultdict(list)
|
63 |
|
|
|
57 |
|
58 |
# Load sample images from CSV with proper label mapping
|
59 |
@st.cache_data
|
60 |
+
def load_sample_images_from_csv(csv_path=r'D:\DR_Classification\splits\test_labels.csv'):
|
61 |
df = pd.read_csv(csv_path)
|
62 |
samples = defaultdict(list)
|
63 |
|