我正在尝试从this github存储库运行一个jupyter笔记本(Learn_direction_in_latent_space.ipynb
)。编译第二个单元格后,出现以下错误。有人对如何解决此问题有建议吗?
我记得我之前运行过代码,但没有任何问题。我正在使用TensorFlow 1.13和TensorFlow-gpu 1.13。
AssertionError Traceback (most recent call last)
<ipython-input-6-5b8e6e491508> in <module>
2
3 tflib.init_tf()
----> 4 with dnnlib.util.open_url(URL_FFHQ, cache_dir=config.cache_dir) as f:
5 generator_network, discriminator_network, Gs_network = pickle.load(f)
6
~/Documents/stylegan-encoder/dnnlib/util.py in open_url(url, cache_dir, num_attempts, verbose)
345 def open_url(url: str, cache_dir: str = None, num_attempts: int = 10, verbose: bool = True) -> Any:
346 """Download the given URL and return a binary-mode file object to access the data."""
--> 347 assert is_url(url)
348 assert num_attempts >= 1
349
AssertionError: