A photo-sensitive polymer composition comprising (a) a polymer obtained by reacting a poly(amic acid) with one or more amino compounds having at least one hydroxyl group and an isocyanate compound, and (b) one or more photosensitizers, photoinitiators or photocrosslinkers can provide a polyimide film excellent in heat resistance and mechanical properties and is suitable for forming fine patterns.