FigureQA的PyTorch实现:ValueError:找不到子字符串

时间:2018-09-28 15:03:16

标签: substring pytorch

在运行Microsoft(https://github.com/mcogswell/figqa-pytorch)开源项目FigureQA的PyTorch实现时,我收到“ self.server_base_name = server [server.index(“ //”的“ ValueError:未找到子字符串” “)+ 2:]”。它使用visdom config json文件定位服务器,在本例中为localhost。我尝试在本地主机之前添加“ http://”,但是没有用。任何解决此错误的线索将不胜感激!

Initializing visdom env [figqa-rn]
Traceback (most recent call last):
  File "train.py", line 187, in <module>
    main(figqa.options.parse_arguments())
  File "train.py", line 129, in main
    viz = utils.visualize.VisdomVisualize(env_name=args.env_name)
  File "C:\Users\suk\Desktop\Thesis\figqa-pytorch\figqa\utils\visualize.py", 
line 29, in __init__
    server=server,
  File "C:\Users\suk\PycharmProjects\untitled\venv\lib\site- packages\visdom\__init__.py", line 309, in __init__
    self.server_base_name = server[server.index("//") + 2:]
ValueError: substring not found

0 个答案:

没有答案