Use only the sub categories from a category input
You could set the level parameter according to your requirements:

{% set cats = craft.categories({
    relatedTo: {
        sourceElement: entry,
        field: 'categoryInput'
    },
    level: 2,
    limit: null
}) %}