The soldiers did not belong to the AH common army or the Hungarian Honvéd army when the photo was taken. I think it was taken right after WWI, in time of forming the new state/army of Czechoslovakia. That's why you can identify the AH style clothing, but the badges are already changed.
Of course it does not exclude the possibility that they served in the AH army during the war (IR72 or Honvéd IR13).
Is there anything on the back-side of the picture? (The name of the town could prove if the photo was taken after the state change)