Skip to content

Memory error while loading the numpy array #3

@riti1302

Description

@riti1302

Hi @kamata1729 !
I am using the code without cuda and cython and I am getting the following memory error. My system has 4GB RAM. Looking forward to your reply.

save features...
calc NCC...
Traceback (most recent call last):
File "run.py", line 68, in
template, image, threshold=None, use_cython=args.use_cython)
File "/home/ritika/Documents/robustTemplateMatching-master/FeatureExtractor.py", line 117, in call
self.template_feature_map.numpy(), self.image_feature_map.numpy())
File "/home/ritika/Documents/robustTemplateMatching-master/FeatureExtractor.py", line 69, in calc_NCC
tmp = np.zeros((c, M.shape[-2] - h_f, M.shape[-1] - w_f, h_f, w_f))
MemoryError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions