在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):technicolor-research/dsve-loc开源软件地址(OpenSource Url):https://github.com/technicolor-research/dsve-loc开源编程语言(OpenSource Language):Python 100.0%开源软件介绍(OpenSource Introduction):Deep semantic-visual embedding with localizationTraining and evaluation code for the paper Finding beans in burgers: Deep semantic-visual embedding with localization This code allow training of new model, reproduction of experiments, as well as features extraction for both images and texts. Author and contact: Martin Engilberge Main dependenciesThis code is written in python. To use it you will need:
An environment file for conda is available in the repository (environment.yml). Getting startedYou will first need to set the paths to the datasets and word embedding in the file misc/config.py Commentaries in the config file contains links where you can download the data. To train and run model you will need: To reproduce experiments in the paper: Once the required paths have been set in the config file you can start training models using the following command: python train.py By default all the scripts use gpu, you can switch to cpu mode by uncommenting Model evaluationModels can be evaluated on three tasks:
python eval_retrieval.py -p "path/to/model/model.pth.tar" -te
python pointing_game.py -p "path/to/model/model.pth.tar"
python semantic_seg.py -p "path/to/model/model.pth.tar" Features extractionThe features space produced by the joint embedding manages to capture semantic property. Two scripts can be used to extract feature from that space for images and texts. For images the script takes a folder as input and produces the embedding representation for all the jpeg images in the folder. python image_features_extraction.py -p "path/to/model/model.pth.tar" -d "path/to/image/folder/" -o "path/to/output/file" For text the script takes a text file and produces the embedding representation for each line. python text_features_extraction.py -p "path/to/model/model.pth.tar" -d "path/to/text/file/" -o "path/to/output/file" ReferenceIf you found this code useful, please cite the following paper:
Licenseby downloading this program, you commit to comply with the license as stated in the LICENSE.md file. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论