sparse coding upsampling experiment code