Hollywood actor James Franco has revealed he ate salads for "a year and a half" to prepare for sex scenes in 'The Disaster Artist'.