所以我试了这个:
!pip install -q pix2pix-tensorflow
:
!pip install git+https://github.com/affinelayer/pix2pix-tensorflow.git
但是一切都不正常。
这是我得到的错误:
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting git+https://github.com/affinelayer/pix2pix-tensorflow
Cloning https://github.com/affinelayer/pix2pix-tensorflow to /tmp/pip-req-build-r59bl6ax
Running command git clone -q https://github.com/affinelayer/pix2pix-tensorflow /tmp/pip-req-build-r59bl6ax
ERROR: File "setup.py" not found for legacy project git+https://github.com/affinelayer/pix2pix-tensorflow.
您可以使用下面的代码访问pix2pix
:
!pip install git+https://github.com/tensorflow/examples.git
from tensorflow_examples.models.pix2pix import pix2pix