pip install -r requirements.txtfrom huggingface_hub import snapshot_download
# Define the model repo
model_name = "Sharukesh/attention-unet"
# Download the model locally
snapshot_download(repo_id=model_name, local_dir="/content/attention-unet")from huggingface_hub import snapshot_download
# Define the model repo
model_name = "Sharukesh/GAN-HAM10000-class-balancing"
# Download the model locally
snapshot_download(repo_id=model_name, local_dir="/content/GAN")On our implementation of GAN the outputs were not well featurized, so those images could not be used in the training of the model, hence we choose to do SMOTE (Synthetic Minority Oversampling Technique).
- Identify Minority Class: It targets the minority class in an imbalanced dataset.
- Select a Sample: Randomly picks a sample from the minority class.
- Find Nearest Neighbors: Identifies its k-nearest neighbors in the feature space (typically using Euclidean distance).
- Generate Synthetic Samples: Creates new synthetic data points by interpolating between the original sample and one of its nearest neighbors.
- Repeat: This process is repeated until the desired class balance is achieved.
Find our implementation of smote down here