carlosgomes98
commited on
Commit
·
282b197
1
Parent(s):
cc6ba7e
Fix num_frames parameter used by both model and train params
Browse files
app.py
CHANGED
@@ -260,16 +260,15 @@ def predict_on_images(data_files: list, mask_ratio: float, yaml_file_path: str,
|
|
260 |
with open(yaml_file_path, 'r') as f:
|
261 |
params = yaml.safe_load(f)
|
262 |
|
|
|
263 |
# data related
|
264 |
train_params = params["train_params"]
|
265 |
-
num_frames =
|
266 |
img_size = train_params['img_size']
|
267 |
bands = train_params['bands']
|
268 |
mean = train_params['data_mean']
|
269 |
std = train_params['data_std']
|
270 |
|
271 |
-
model_params = params["model_args"]
|
272 |
-
|
273 |
batch_size = 8
|
274 |
|
275 |
mask_ratio = train_params['mask_ratio'] if mask_ratio is None else mask_ratio
|
|
|
260 |
with open(yaml_file_path, 'r') as f:
|
261 |
params = yaml.safe_load(f)
|
262 |
|
263 |
+
model_params = params["model_args"]
|
264 |
# data related
|
265 |
train_params = params["train_params"]
|
266 |
+
num_frames = model_params['num_frames']
|
267 |
img_size = train_params['img_size']
|
268 |
bands = train_params['bands']
|
269 |
mean = train_params['data_mean']
|
270 |
std = train_params['data_std']
|
271 |
|
|
|
|
|
272 |
batch_size = 8
|
273 |
|
274 |
mask_ratio = train_params['mask_ratio'] if mask_ratio is None else mask_ratio
|