Sadjad Alikhani
commited on
Update input_preprocess.py
Browse files- input_preprocess.py +2 -1
input_preprocess.py
CHANGED
|
@@ -23,7 +23,7 @@ def scenarios_list():
|
|
| 23 |
])
|
| 24 |
|
| 25 |
#%% Token Generation
|
| 26 |
-
def tokenizer(deepmimo_data, gen_raw=True):
|
| 27 |
"""
|
| 28 |
Generates tokens by preparing and preprocessing the dataset.
|
| 29 |
|
|
@@ -40,6 +40,7 @@ def tokenizer(deepmimo_data, gen_raw=True):
|
|
| 40 |
"""
|
| 41 |
|
| 42 |
# Patch generation or loading
|
|
|
|
| 43 |
n_scenarios = len(deepmimo_data)
|
| 44 |
patches = [patch_maker(deepmimo_data[scenario_idx]) for scenario_idx in range(n_scenarios)]
|
| 45 |
patches = np.vstack(patches)
|
|
|
|
| 23 |
])
|
| 24 |
|
| 25 |
#%% Token Generation
|
| 26 |
+
def tokenizer(deepmimo_data, scenario_idxs, gen_raw=True):
|
| 27 |
"""
|
| 28 |
Generates tokens by preparing and preprocessing the dataset.
|
| 29 |
|
|
|
|
| 40 |
"""
|
| 41 |
|
| 42 |
# Patch generation or loading
|
| 43 |
+
deepmimo_data = deepmimo_data[scenario_idxs]
|
| 44 |
n_scenarios = len(deepmimo_data)
|
| 45 |
patches = [patch_maker(deepmimo_data[scenario_idx]) for scenario_idx in range(n_scenarios)]
|
| 46 |
patches = np.vstack(patches)
|