Source code for the Dynamic Task and Weight Prioritization Curriculum Learning for Multimodal Imagery paper (currently under review).
Create a new Python environment
$ conda create -n datwep python=3.11 -y
Activate created environment
$ conda activate datwep
Install dependencies
$ pip install -r requirements.txt
Download the FloodNet dataset from below (Both Track 1 and 2):
- Download track 1 & 2 from https://github.com/BinaLab/FloodNet-Challenge-EARTHVISION2021
- Extract “Images” and “Questions” folders from track 2 files
- Extract training images from track 1 files. Since validation and test images don’t have annotations, we are going to ignore them.
- In “labeled” folder, combine mask folders from “Flooded” and “Non-Flooded” folders in a new directory.
- Create three new directories and move files:
- “track2_vqa/Images/” move “Images” folder from track 2 files
- “track2_vqa/Questions/” move “Questions” folder from track 2 files
- “track1_seg/train-label-img” move combined mask files here (mask folders from “Flooded” and “Non-Flooded” folders)
- If your prefer other directories, please modify the directories in hyperparameters dictionary:
- hyperparameters['DATASET']['IMAGES_ROOT']
- hyperparameters['DATASET']['QUESTIONS_ROOT']
- hyperparameters['DATASET']['MASK_IMAGES_PATH']
- Note: We only use the “Train_Image” folder of the “Images” of track 2. This is automatically set.
- If you prefer another directory, then you should set the DATA_ROOT in Training.ipynb notebook.
hyperparameters['DATASET']['DATA_ROOT']
- After setting up the dataset, run the jupyter server locally:
$ jupyter lab
-
Open Training.ipynb notebook, make sure correct data folders are set. This notebook will train the model and save the results.
-
After training is complete, open Evaluation.ipynb notebook and run to see the final results.
If you have any questions, feel free the contact us:
H. Fuat Alsan (PhD Candidate) huseyinfuat.alsan@stu.khas.edu.tr
Assoc. Prof. Dr. Taner Arsan (Computer Engineering Department Chair) arsan@khas.edu.tr
(PAPER STILL UNDER REVIEW, WILL BE UPDATED LATER)