Codebase for the paper: Fusion of pervasive RF data with spatial images via vision transformers for enhanced mapping in smart cities
conda env create
conda activate env_rec_osm_wairdCreate a .env file in the repository root (it is loaded by run.py) and define:
OUTPUT_DIR=/absolute/path/to/outputs
PREDICTIONS_PATH=/absolute/path/to/predictions
AIM_REPO=/absolute/path/to/aim_repo
R_IMAGES_DATA_PATH=/absolute/path/to/waird/images
R_DIST_TRANSFORM_PATH=/absolute/path/to/waird/dist_transform # or keep empty if not used
SEQUENCE_DATA_PATH=/absolute/path/to/waird/sequences
SCENARIO2_PATH=/absolute/path/to/waird_scenario2/images/scenario_2
OSLO_MAT_FILE=/absolute/path/to/oslo/measurements.mat
OSLO_CELL_FILE=/absolute/path/to/oslo/cell_info.xlsx
OSLO_IMAGES_OUT_DIR=/absolute/path/to/oslo/generated/images
OSLO_SEQUENCES_OUT_DIR=/absolute/path/to/oslo/generated/sequences
OSLO_SPLITS_PATH=/absolute/path/to/oslo/splits
OSLO_STITCH_ARTIFACTS=/absolute/path/to/oslo/stitch_artifacts- WAIR-D dataset: Download page
- Oslo dataset (4G/NB-IoT/5G NSA measurements): IEEE DataPort page
python run.py --config-name=trainpython run.py --config-name=inference checkpoint_path=/absolute/path/to/checkpoint.ckpt split=test gpu=0python run.py --config-name=evaluation \
prediction_path=/absolute/path/to/predictions/<run>/<ckpt>/wair_d_r_osm_sequences/test \
task=osm split=testpython run.py --config-name=reconstruction_visualize \
predictions_path=/absolute/path/to/predictions/<run>/<ckpt>/wair_d_r_osm_sequences/testpython run.py --config-name=oslo_generate_datapython run.py --config-name=oslo_retrofit_infopython run.py --config-name=oslo_train_test_splitpython run.py name=oslo_create_info_json print_config=False main_path=/absolute/path/to/scenario_1 dataset_type=dataSet_interppython run.py --config-name=train datamodule=oslopython run.py --config-name=inference datamodule=oslo checkpoint_path=/absolute/path/to/checkpoint.ckpt split=test gpu=0python run.py --config-name=evaluation \
datamodule=oslo \
prediction_path=/absolute/path/to/predictions/<run>/<ckpt>/oslo/test \
task=osm split=testpython run.py --config-name=reconstruction_visualize \
datamodule=oslo \
predictions_path=/absolute/path/to/predictions/<run>/<ckpt>/oslo/testRun in this order:
python run.py --config-name=oslo_build_full_areapython run.py --config-name=oslo_generate_crop_cachepython run.py --config-name=oslo_stitch_inference \
checkpoint_path=/absolute/path/to/checkpoint.ckpt \
gpu=0 \
window_fraction=1/16 \
fallback_mode=input_mapbash scripts/oslo_stitch_sweep.shpython run.py --config-name=oslo_stitch_evaluate checkpoint_path=/absolute/path/to/checkpoint.ckptpython run.py --config-name=oslo_stitch_visualize