GithubHelp home page GithubHelp logo

ekilic / heatmap-learner-cnn-for-object-counting Goto Github PK

View Code? Open in Web Editor NEW
41.0 2.0 7.0 3.45 MB

Heatmap Learner Convolutional Neural Network for Object Counting and Localization

Python 100.00%
convolutional-neural-networks deep-learning object-detection computer-vision object-counting carpk pucpr

heatmap-learner-cnn-for-object-counting's People

Stargazers

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

Watchers

 avatar  avatar

heatmap-learner-cnn-for-object-counting's Issues

dataset

rawmode = RAWMODE[im.mode]
KeyError: 'RGBA'
raise OSError(f"cannot write mode {im.mode} as JPEG") from e
OSError: cannot write mode RGBA as JPEG

is this because of PILLOW library or incorrect dataset path?

Directory issue

I was trying this on my jupyter notebook and got some directory issue.

def __init__(self, root, set, train = True):

    self.root = root
    self.path_devkit = os.path.join(root, 'CARPK')
    self.path_images = os.path.join(root, 'CARPK', 'Images')
    self.classes = object_categories
    self.train = train
    id_list_file = os.path.join(self.path_devkit, 'ImageSets//{0}.txt'.format(set))
    self.ids = [id_.strip() for id_ in open(id_list_file)]
    print('CARPK dataset set=%s number of classes=%03d  number of images=%d' % (
    set, len(self.classes), len(self.ids)))

have corrected with "//" in my code.

Cannot reproduce the result when training from scratch

I tried to run train.py to train from scratch. The result I obtained with test.py is:

MAE: 8.969498910675382
RMSE: 17.12831237942957

When I try to download the pretrained model and run test.py, the result I obtained are:

MAE: 2.122004357298475
RMSE: 3.026390819827392

Thank you.

The results are worse than the paper results

The model trained through open source code is on the CARPK dataset, MAE=7.17, MRES=13.88, which is much worse than the trained model "trained_model_CARPK_x8_2_12.pt" you provided. Where did the problem go wrong?
Looking forward to your reply, thank you

memory issue

I was trying the testing on my local machine. is there a way to use lower resolution images? otherwise it's throwing below error:

numpy.core._exceptions._ArrayMemoryError: Unable to allocate 28.1 MiB for an array with shape (720, 1280, 4) and data type float64

Cannot reproduce the results.

Run the test.py with the trained model on the CARPK dataset gave much worse results than reported in the paper.

MAE: 16.21132897603486
RMSE: 31.96154415873697

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.