文章简介
本文是一篇vision&language跨模态的bert模型。
代码链接
论文链接
Issues
-
ModuleNotFoundError: No module named ‘external._mask’
pip install Cpython
cd tools/refer/
python setup.py build_ext install
(refer.py) change “from external import mask” to “from .external import mask” -
ModuleNotFoundError: No module named ‘h5py’
pip install h5py -
ModuleNotFoundError: No module named ‘skimage’
pip install scikit-image -
module compiled against API version 0xc but this version of numpy is 0xb
pip uninstall numpy
pip install --upgrade numpy -
tensorboard
pip uninstall setuptools
pip install setuptools -
TypeError: Couldn’t build proto file into descriptor pool! Invalid proto descriptor for file “tensorboard/compat/proto/tensor_shape.proto”
pip uninstall tensorboard tensorboardX
pip install tensorboardX==1.2 -
使用pip install opencv-python出现:Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-y05iv11z/opencv-python
python -m pip install --upgrade --force pip -
找不到train.txt、Annotation/xxx.xml等文件
下载Flickr30k_Entities数据集 -
AttributeError: ‘BertTokenizer’ object has no attribute ‘add_special_tokens_sentences_pair’
pip uninstall pytorch-transformers
pip install pytorch-transformers=1.1.0 -
cPickle.dump(self.entries, open(cache_path, “wb”)) No such file or directory: 'datasets/flickr30k/cache/FlickrGrounding_train_24_200_cleaned.pkl
新建datasets/flickr30k/cache/文件夹 -
ModuleNotFoundError: No module named ‘fused_layer_norm_cuda’
pip uninstall apex
cd apex_dir
rm -rf apex_dir -
File “/home/tensorflow/dist4T/chuanhao/code/vilbert-multi-task/vilbert/datasets/_image_features_reader.py”, line 72, in getitem
index = self._image_ids.index(image_id)
ValueError: b’4122645918’ is not in list
重新复制一遍mdb数据 -
ConnectionResetError: [Errno 104] Connection reset by peer