For research a good guide and good environment is enough. Though in IISc there are more good facilities most old IITs are not far behind. Even in IISc for course work specialization starts only by second year. So plenty of time to decide that. Currently ML makes sense due to high demand and high pay. But if one doesn't like, never think of going for it.