A deep neural network, referred to as DIFFnet, was developed to reconstruct the diffusion parameters from data with reasonable b-value and gradient scheme (gradient direction and the number of gradients). For the generalization, Qmatrix was proposed via the projection and quantization of q-space. DIFFnet was trained by simulated datasets with various b-values and gradient schemes. Two DIFFnets, one for DTI and the other for NODDI were developed. DIFFnet successfully reconstructs the diffusion parameter maps of two in-vivo datasets with different b-values and gradient schemes.