def freeze_all_confs(self):
        """
        Freezes all the parameters of all the ModuleDicts children
        """
        for name, child in self.named_children():
            if isinstance(child, nn.ModuleDict):
                for bin_conf_name, module in child.items():
                    for p in module.parameters():
                        p.requires_grad = False

        Freezes all the parameters of all the ModuleDicts children
        
ControlNet-v1-1-nightly/annotator/zoe/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py