Hey Ahmad,
I understand that you are trying to create a faster R-CNN Object detection network using ‘fasterRCNNLayers’ function and are facing a warning that says that the network architecture is not supported by ‘trainNetwork’ function.
This warning is to inform you that the newly created faster R-CNN network cannot be trained using the ‘trainNetwork’ function since this network’s architecture is not compatible with it. Instead, you can use the ‘trainFasterRCNNObjectDetector’ function to train this network as a ‘layerGraph’. Therefore, unless you use the ‘trainNetwork’ function there should be no future errors related to this warning.
You can refer to the following documentation for guidance on implementing the ‘trainFasterRCNNObjectDetector’ function.
Hope this resolves your query!