开源软件名称(OpenSource Name):yassersouri/fast-bird-part-localization开源软件地址(OpenSource Url):https://github.com/yassersouri/fast-bird-part-localization开源编程语言(OpenSource Language):Jupyter Notebook 92.0%开源软件介绍(OpenSource Introduction):fast-bird-part-localizationCode for Fast Bird Part Localization part of the following paper: Fast Bird Part Localization for Fine-Grained Categorization The code for classification part is very simple and not included in this repository. Requirements
Getting StartedFor testing or training you need the pretrained CaffeNet network. You can download it from this url. After downloading it, make sure you change the Training a new head detectorThis can be done using the CUB dataset. First download the CUB-200-2011 dataset from here and extract it.
Then change Then run the following command: python create_rf_model.py This will create a head detector for you in the models directory. To run this script you will night large amount of RAM (~30GB). Changing TestingFor localization you can run something like this. import sys
sys.path.append('/path/to/projectroot/')
from fast_bird_part_localization import settings
sys.path.append(settings.CAFFE_PYTHON_PATH)
import caffe
from fast_bird_part_localization import detector
fbp = detector('/path/to/project/models/head_model.mdl')
img = caffe.io.load_image('/path/to/bird.jpg')
head, head_prob = fbp.detect(img)
fbp.draw(img, head, head_prob) This is the result you get: You can also take a look at the notebook example Work in ProgressI'm in progress of cleaning up my original code and putting it here. So please wait a little while. TODO:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论