In another aspect, the disclosure provides an image forming apparatus including the foregoing pipe connection decision device, and an ink jet head. The ink jet head ejects ink of predetermined colors different from each other, onto a recording sheet. The second material includes an ink supply device having a plurality of ink supply containers respectively provided for the predetermined colors, a plurality of ink supply pumps that feed the ink from the respective ink supply containers, and the plurality of second pipes each having the other end connected to one of the plurality of ink supply pumps. The first material includes an ink tank unit having a plurality of ink storage tanks for storing the ink of the respective colors supplied from the ink supply device, and the plurality of first pipes each having the other end connected to one of the plurality of ink storage tanks. The ink tank unit supplies the ink of the predetermined colors delivered from the respective ink storage tanks, to the ink jet head.