zhiqic / Rethinking-Counting

[CVPR 2022] Rethinking Spatial Invariance of Convolutional Networks for Object Counting
60 stars 12 forks source link

about the pca #13

Open lll143653 opened 2 months ago

lll143653 commented 2 months ago

there are only four pca with global search, but it seems not work. in the Rethinking-Counting/models/gau_conv/gau_conv.py line27

from ._pca import *
from ._gau_conv_grad_op import *

from ctypes import cdll
cdll.LoadLibrary(os.path.join(os.path.dirname(os.path.realpath(__file__)),'libgau_conv_tensorflow.so'))

gau_conv_op_module = tf.load_op_library(os.path.join(os.path.dirname(os.path.realpath(__file__)),'libgau_conv_op.so'))

class GAUGridMean(init_ops.Initializer):
    def __init__(self, gau_units, max_value, gau_unit_axis=2):
        self.gau_units = gau_units
        self.gau_unit_axis = gau_unit_axis
        self.max_value = pca(max_value)

it seems self.max_value = pca(max_value) will return a error?