Comments (13)
Thanks, @fastlater. It's true that you can modify the loader and also turn off evaluation. But ideally, it should be easier than that.
I guess @bhack has the point there. I probably should provide some demo code to work with arbitrary images. I'm gonna make it and let you know when I push it.
from blitznet.
@bhack you can check the loader.py and set it to load the images from a different folder (folder created by you with new images from internet) or load a single image.
The minimal demo code should looks like:
def main(argv=None):
net = ResNet(config=net_config, depth=50, training=False)
loader = HERE YOU SET THE FOLDER OR IMAGE
with tf.Session(config=tf.ConfigProto(allow_soft_placement=True,
log_device_placement=False)) as sess:
detector = Detector(sess, net, loader, net_config, no_gt=args.no_seg_gt)
detector.restore_from_ckpt(args.ckpt)
#HERE, Use methods in detector.py to get the results
if __name__ == '__main__':
tf.app.run()
I haven't write an entire script to test a single image but it should not be too complicated if you read the test.py and detector.py
from blitznet.
@dvornikita We will be happy to see a clean demo code from you in the future. Just for testing, I created a new loader and used the functions from detector.py. It was a little bit dirty the code but at least, I got the desired output.
from blitznet.
@bhack, @fastlater, @AlonTetro, the demo has arrived.
Be careful, there are some minor changes in detector.py, so check them if you don't want to pull the new version.
from blitznet.
Thank you. Is the demo working with BlitzNet512?
from blitznet.
@dvornikita Thank you for letting me know. I will take a look on it.
from blitznet.
@bhack it does. The only difference with testing is that you don't have a dataset linked to the loader. Just specify the right flags for running the demo as you would do for testing.
The only limitation for now is Pascal VOC categories. I'll push the COCO labels later.
from blitznet.
@dvornikita I've asked cause with BlitzNet512 I got tensorflow.python.framework.errors_impl.NotFoundError: Key ssd_back/block_rev6/shortcut/weights not found in checkpoint
Edit: I missed to post that the solution was to add --image_size 512
arg for the BlitzNet512 model
from blitznet.
@dvornikita Results seems goods. I've noted generally that MSCOCO And PASCAL GT segmentation masks are not so precise. Have you tried to add also Davis dataset masks 2016 and 2017 to the training mix?
from blitznet.
@bhack No we didn't. The strength of the method is to discover some hidden correlations in bounding boxes and segmentation annotations to reduce class confusion for both and make localization of boxes more precise, while still being realtime. I guess the Davis dataset has only segmentations and if you want them more accurate it would make more sense to use a state-of-the art segmentation method.
But we may make good use of this dataset in the future. Thanks.
from blitznet.
@dvornikita Yes I understand the original scope. But I still think that Blitznet segmentation quality is quite good. I think is not a problem to derive a bounding box from a segmentation Mask like in the Mscoco API official toolkit.
from blitznet.
@bhack I looked closer at the Davis and I agree with you, it's feasible. For sure it can be used at least as a solid pretraining.
Although there might be a problem of video and still image statistics mismatch, which is considered to be an issue in the community. So it needs to be done carefully.
from blitznet.
@dvornikita The interesting thing is to evaluate how the quality of the mask influence the segmentation performance of your model. So probably one of the first interesting approach is just to fine-tune on Davis the models that you have already pretrained.
from blitznet.
Related Issues (20)
- python demo.py --run_name=BlitzNet300_COCO+VOC07+12 --x4 --detect --segment --eval_min_conf=0.5 --ckpt=1 HOT 7
- files = glob(osp.join(self.folder, '*{}'.format(self.data_format))) HOT 1
- tensorflow.python.framework.errors_impl.NotFoundError: /home/cbl/PycharmProjects/blitznet-master/Datasets/voc07-trainval-segmentation; No such file or directory HOT 1
- python training.py --run_name=BlitzNet300_x4_VOC0712_detseg --dataset=voc07+12-segmentation --trunk=resnet50 --x4 --batch_size=32 --optimizer=adam --detect --segment --max_iterations=65000 --lr_decay 40000 50000 HOT 1
- without Preparation3 ,can I train ? HOT 2
- ModuleNotFoundError: No module named 'progressbar' HOT 1
- 1a
- true_number_of_negatives calculation HOT 4
- About the arguments in class feed_forward HOT 1
- Model download HOT 2
- Demo results HOT 2
- Test on MS COCO dataset based on trained checkpoint HOT 3
- Some illogical problems occurred during the detection process.
- How to train on cityscapes? HOT 2
- How to calculate each class of IoUοΌ HOT 4
- About MIoU result HOT 1
- Where is the deconvolution layers?
- Is there any other hidden settings or tricks for training HOT 4
- Pre-trained model and the interface HOT 1
- Download the pre-trained model
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blitznet.