An image forming apparatus includes an image bearing member on which an
electrostatic image is formed; a development device which develops the
electrostatic image formed on the image bearing member, and forms a toner
image; a first transfer device which transfers the toner image on the
image bearing member to an intermediate transfer member at a first
transfer position; a first cleaning device for cleaning the image bearing
member; a second transfer device which transfers the toner image on the
intermediate transfer member to a recording material at a second transfer
position; a second cleaning device for cleaning the intermediate transfer
member; and a determining device which determines, whether the toner on
the intermediate transfer member is to be cleaned by the second cleaning
device or by the first cleaning device through the image bearing member,
based an interval of an image forming process during a continuous image
forming process.