Load model from file or directory