Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -674,6 +674,17 @@ with gr.Blocks(css="""
|
|
674 |
hdf.create_dataset('channels', data=channels)
|
675 |
hdf.create_dataset('labels', data=labels)
|
676 |
print("Dataset saved!")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
677 |
```
|
678 |
""")
|
679 |
|
|
|
674 |
hdf.create_dataset('channels', data=channels)
|
675 |
hdf.create_dataset('labels', data=labels)
|
676 |
print("Dataset saved!")
|
677 |
+
|
678 |
+
# To use your preferred DeepMIMO scenarios for the custom dataset, please [clone the model](https://huggingface.co/wi-lab/lwm) and follow the instructions below:
|
679 |
+
from input_preprocess import DeepMIMO_data_gen deepmimo_data_cleaning label_gen
|
680 |
+
|
681 |
+
scenario_names = ['city_19_oklahoma']
|
682 |
+
|
683 |
+
deepmimo_data = [DeepMIMO_data_gen(scenario_name) for scenario_name in scenario_names]
|
684 |
+
cleaned_deepmimo_data = [deepmimo_data_cleaning(deepmimo_data[scenario_idx]) for scenario_idx in range(len(scenario_names))]
|
685 |
+
|
686 |
+
channels = np.squeeze(np.array(cleaned_deepmimo_data[0]), axis=1)
|
687 |
+
labels = label_gen('LoS/NLoS Classification', deepmimo_data[0], scenario_names, n_beams=64)
|
688 |
```
|
689 |
""")
|
690 |
|