# NOT RUN {
# U-Net model for 256x256 pixel RGB input images with a single output class
# this model was used for canopy density
model <- u_net(net_h = 256,
net_w = 256,
grayscale = FALSE,
filters = 32,
blocks = 4,
layers_per_block = 2
)
# several arguments above were not necessary because they were kept at their default.
# Below is the same model, but shorter:
model <- u_net(net_h = 256,
net_w = 256,
filters = 32
)
model
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab