Its possible that you've got multiple python versions and installed the package using python 2 rather than 3. Try reinstalling with:
pip3 -r requirements.txt
python3 setup.py install
It cannot run yet. However, I move the file "imageopt.py" into the ../../..,just in the DifferentiableSketching. It can run but another error occured. It looks strange.
/usr/local/lib/python3.7/dist-packages/torch/functional.py:445: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:2157.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
Setting up [LPIPS] perceptual loss: trunk [vgg], v[0.1], spatial [off]
Loading model from: /usr/local/lib/python3.7/dist-packages/lpips/weights/v0.1/vgg.pth
0% 1/500 [01:33<12:53:59, 93.06s/it, loss=0.725, sigma^2=0.000264]^C
Originally posted by @BingoGreen in #1 (comment)