Ivan-E-Johnson / AML_Project_Supervised

0 stars 0 forks source link

Weight and visualize labels #14

Closed JoslinSome closed 3 months ago

JoslinSome commented 3 months ago

Added code to visualize labels given an image path and a label file path. Added code to weight average of all labels given image and label paths ended up with following distribution label_weights={'Background': 94.66189125389738, 'Peripheral Zone': 1.6434384300595233, 'Transition Zone': 3.4090448842297345, 'Distal Prostatic Urethra': 0.26201520647321425, 'Fibromuscular Stroma': 0.023610225340136057} Added weights to top of main.py for ease of access. re added .env file so we don't need to keep rewriting each others paths. make a .env file in the /AML_Project_Supervised repo and add your file paths for

DATA_PATH=/Users/iejohnson/School/spring_2024/AML/Supervised_learning/DATA/preprocessed_data
SortedProstateData=/home/iejohnson/programing/Supervised_learning/DATA/SortedProstateData
SWINUNETR_DATA_PATH=/home/ivan/School/AML/DATA/swinunetr_preprocessed_data

labeled image below Screenshot from 2024-03-31 15-54-06