Rights groups have called for an evacuation of detention centres where they say migrants face inhumane conditions.