This repository was archived by the owner on Aug 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -241,14 +241,17 @@ def compile(
241241 loss_iou_type : str = "ciou" ,
242242 loss_verbose = 1 ,
243243 optimizer = optimizers .Adam (learning_rate = 1e-4 ),
244+ ** kwargs
244245 ):
246+ # TODO: steps_per_execution tensorflow2.4.0-rc4
245247 self .model .compile (
246248 optimizer = optimizer ,
247249 loss = train .YOLOv4Loss (
248250 batch_size = self .batch_size ,
249251 iou_type = loss_iou_type ,
250252 verbose = loss_verbose ,
251253 ),
254+ ** kwargs
252255 )
253256
254257 def fit (
@@ -262,26 +265,20 @@ def fit(
262265 steps_per_epoch = None ,
263266 validation_steps = None ,
264267 validation_freq = 1 ,
268+ ** kwargs
265269 ):
266270 self .model .fit (
267271 data_set ,
268272 batch_size = self .batch_size ,
269273 epochs = epochs ,
270274 verbose = verbose ,
271275 callbacks = callbacks ,
272- validation_split = 0.0 ,
273276 validation_data = validation_data ,
274- shuffle = True ,
275- class_weight = None ,
276- sample_weight = None ,
277277 initial_epoch = initial_epoch ,
278278 steps_per_epoch = steps_per_epoch ,
279279 validation_steps = validation_steps ,
280- validation_batch_size = None ,
281280 validation_freq = validation_freq ,
282- max_queue_size = 10 ,
283- workers = 1 ,
284- use_multiprocessing = False ,
281+ ** kwargs
285282 )
286283
287284 def save_dataset_for_mAP (
You can’t perform that action at this time.
0 commit comments