Giter VIP home page Giter VIP logo

tf2-faster-rcnn's People

Contributors

hxuaj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tf2-faster-rcnn's Issues

To much impact from the background

Hi at first I want to say that is the best Faster RCNN I could find which is created with Tensorflow2.

I try this one and change some parts. Special the classes and the database. But nothing more. In my case I take a look to the output and all the data is labled with the background index. You can imagine, the result are no labels. Do you have any idea why this should be happen? The interface to fill the FasterRCNN class is similar to yours. The label count in each of the images is around 10 to 20 labels, the size of the images are 1000:840.
Edit: it looks like the problem of the RPN which is decribed in https://arxiv.org/pdf/1506.01497.pdf 3.1.3. Is there any algorithm implemented?

Error when reaching the end of Epoch1

File "train.py", line 140, in
ap ,mAP = voc_eval(eval_ds, model, ds.num_classes)
File "C:\Users\anind\Documents\Dissertation Codes\PhaseII_Novelty\tf2-faster-rcnn\eval.py", line 205, in voc_eval
precision, recall = voc_eval_pre_rec(dataset, model, num_classes)
File "C:\Users\anind\Documents\Dissertation Codes\PhaseII_Novelty\tf2-faster-rcnn\eval.py", line 35, in voc_eval_pre_rec
labels, bboxes, cls_prob = model(img_input)
ValueError: too many values to unpack (expected 3)

bug in train file

#1 Regarding this issue, my current workaround is to create a new model with is_training=False and copy weights into the new model. Not sure if I did something wrong, since I am using TensorFlow r2.11.0.

temp_model = FasterRCNN(is_training=False)
temp_model(init_model())
temp_model.set_weights(model.get_weights())
ap ,mAP = voc_eval(eval_ds, temp_model, ds.num_classes)

train from scratch

Can I use the same model to train a new dataset with only 2 classes ?
if yes, what shall I take into consideration to change the model to fit for the new data ?

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.