Guest User

Untitled

a guest
Jul 14th, 2020
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. import sys
  2. import numpy as np
  3. from learning_functions.perform_learning import perform_learning
  4. from keras_models.detection import detection_unet
  5.  
  6. # inputs to the model
  7. model_params = {'kernel_size': (3, 3, 3),
  8. 'filters': 16,
  9. 'weights': np.array([0.1, 0.9]),
  10. 'learning_rate': 0.001}
  11.  
  12. perform_learning(training_sample_dir="/content/Data/Train",
  13. val_sample_dir="/content/Data/Test",
  14. batch_size=16,
  15. three_d=True,
  16. sample_channels=1,
  17. categorise=True,
  18. output_classes=2,
  19. model_func=detection_unet,
  20. model_params=model_params,
  21. epochs=50,
  22. model_path="/content/model_path",
  23. checkpoint_path="/content/checkpoint_path/detection_model.{epoch:02d}.h5",
  24. log_name="detection",
  25. shuffle=True)
Advertisement
Add Comment
Please, Sign In to add comment