Coder Social home page Coder Social logo

Comments (24)

gkrasin avatar gkrasin commented on June 23, 2024 1

@dineshbvadhia three primary differences:

  1. This model has different weights values as it was trained on a different set of images (OpenImages vs ImageNet)
  2. Different (and much larger) set of labels
  3. It's a multi-label network, as opposed to a single label ImageNet.

Otherwise, it's very similar.

from dataset.

gkrasin avatar gkrasin commented on June 23, 2024

@okasanasan sure! The checkpoint is fully compatible with retraining / finetuning. Give it a try.

from dataset.

gkrasin avatar gkrasin commented on June 23, 2024

As for the exact instructions, I would refer to TensorFlow for Poets tutorial. You will need to change the retrain.py script to load the OpenImages checkpoint, but the general process is the same.

from dataset.

 avatar commented on June 23, 2024

Thanks, @gkrasin.
Can you help me how can I give it a try?
Shall I use this approach https://github.com/tensorflow/models/tree/master/inception?

from dataset.

gkrasin avatar gkrasin commented on June 23, 2024

@okasanasan yeah, that should work (after a few changes in the scripts).

from dataset.

 avatar commented on June 23, 2024

As for changes, I think, I need to point somehow on dict.csv and labelsmap.txt, so these files will be modified with new words (categories). Am I right?

from dataset.

gkrasin avatar gkrasin commented on June 23, 2024

@okasanasan sorry, I have not looked into this close enough to say anything with confidence. If you make it working, please, report your experience back, so that others can follow your way.

from dataset.

 avatar commented on June 23, 2024

I've tried to retrain it with Inception, but it didn't work. I didn't change anything in the files, but I don't believe I'll be able to do that by myself.

And as for https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/image_retraining/retrain.py.
This script requires different format files:
classify_image_graph_def.pb,
imagenet_synset_to_human_label_map.txt, and
imagenet_2012_challenge_label_map_proto.pbtxt.

And this classifier has only model.ckpt file.

So I need to covert .ckpt into .pb, .txt and .pbtxt, right?

from dataset.

gkrasin avatar gkrasin commented on June 23, 2024

I didn't change anything in the files, but I don't believe I'll be able to do that by myself.

Some changes will be required. While I (as I have stated earlier in the thread) have not looked at this close enough, and can't tell what exactly needs to be changed, I can try to talk to the people behind retrain.py script and find a proper way to integrate the Open Images baseline model with it.

I could not promise any specific dates or outcome, but I promise to work on it until it clicks.

from dataset.

 avatar commented on June 23, 2024

@gkrasin, thank you!!!

from dataset.

dineshbvadhia avatar dineshbvadhia commented on June 23, 2024

I've checked the site but don't understand if the pre-trained InceptionV3 model is just of the image annotations (ie. text) or of the actual images or both? Thx.

from dataset.

gkrasin avatar gkrasin commented on June 23, 2024

@dineshbvadhia the pretrained model is a TensorFlow graph with its weights stored in a checkpoint file. It does not include nor text, nor images, but provides a way to take an image as a input and compute predictions on it.

from dataset.

dineshbvadhia avatar dineshbvadhia commented on June 23, 2024

@gkrasin Maybe I'm confused by the terminology. How is this - " a TensorFlow graph with its weights stored in a checkpoint file" - different from a TensorFlow InceptionV3 ImageNet pre-trained model?

from dataset.

dineshbvadhia avatar dineshbvadhia commented on June 23, 2024

@gkrasin Ok, got it. I use keras (with a TensorFlow backend) to extract abitrary layers from the ImageNet InceptionV3 pre-trained model. Is that possible with the OpenImages model?

from dataset.

gkrasin avatar gkrasin commented on June 23, 2024

Most likely possible. After all, it's a regular Inception v3 with a slightly modified output layer (sigmoid vs softmax). I don't have any specific advice, though.

from dataset.

dineshbvadhia avatar dineshbvadhia commented on June 23, 2024

Is there a Google Groups for OpenImages, if not, is one planned to ask questions outside of Github Issues?

from dataset.

gkrasin avatar gkrasin commented on June 23, 2024

@dineshbvadhia no immediate plans to create a mailing group. May be at some point in the future (after the next release)

from dataset.

dineshbvadhia avatar dineshbvadhia commented on June 23, 2024

A Google Group would be welcome. Is the roadmap for OpenImages public ie. what is coming down the road?

from dataset.

gkrasin avatar gkrasin commented on June 23, 2024

Is the roadmap for OpenImages public ie. what is coming down the road?

Not yet. Hopefully, it will be at some point.

from dataset.

NerminSalem avatar NerminSalem commented on June 23, 2024

i m trying to work with the retrain.py file but i have a problem with tensorboard
i worked but with nothing to display, i have tried the solution of tensorflow/readme file but didn't help so can anyone helps me?
thanks

from dataset.

NerminSalem avatar NerminSalem commented on June 23, 2024

forget to mention that i m following this tutorial
https://www.tensorflow.org/tutorials/image_retraining

from dataset.

trumvu avatar trumvu commented on June 23, 2024

What is the accuracy (top-1 and top-5) of this pre-trained Inception-v3 model?

from dataset.

gkrasin avatar gkrasin commented on June 23, 2024

@trumvu it needs to be noted that since the dataset is multi-label (an image may have and usually has several annotations). That's unlike ImageNet where each image has a single class. That makes it hard to use the same metrics (like, top-1 and top-5). Their exact definitions do not make sense anymore.

Instead, the net might be considered as the large collection of binary classifiers, one for each entity type (and it's >6K of them). Then each binary classifier has its own accuracy and recall. Some numbers are available on the main page: https://github.com/openimages/dataset#stats-and-data-quality

More numbers are available in this paper: Learning From Noisy Large-Scale Datasets With Minimal Supervision

from dataset.

kinhunt avatar kinhunt commented on June 23, 2024

"Some changes will be required." to retrain the V3 model. Can you share some more specific details or even code? It would be very helpful. Thank you anyway.

from dataset.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.