Git Product home page Git Product logo

Comments (7)

ZitongYu avatar ZitongYu commented on June 25, 2024

Yeah, that's a point-wise convolution, just considering the current position, not local domain

from cdcn.

Zhengtq avatar Zhengtq commented on June 25, 2024

@ZitongYu Have you tried only use a normal 3x3 vanilla conv followed by normal 1x1 pointwise conv. The only difference is that the kernel of the 1x1 pointwise conv is new while your the kernel of 1x1 pointwise conv in your CDC module is generated from the front 3x3 vanilla conv's kernel.

from cdcn.

punitha-valli avatar punitha-valli commented on June 25, 2024

@Zhengtq

@amsturdy
@ZitongYu

can you please explain to me about the map_dir, and the oulu_npu dataset has video, but as per the source code Train-images, Dev_images, Test_images are required.

Can you please explain it to me?

I am also a student, so it will be greatly helpful for me to do my research work.

thanks in advance

from cdcn.

punitha-valli avatar punitha-valli commented on June 25, 2024

@ZitongYu
@amsturdy
@Zhengtq

@punitha-valli
image

Even i have the images, in that folder i i cant able to do it, i cant able to find the reason, is there any way to solve it,

Thanks in advance

from cdcn.

punitha-valli avatar punitha-valli commented on June 25, 2024

FileNotFoundError: [WinError 3] The system cannot find the path specified: 'D:/face_anti_spoofing/dataset/OULUNPU/Data/demo/Train/Depth_map_1/1_1_01_3'

Even I have images in this folder,...

How about the def single_iamge_x():

I have confusion in it,

Because i have already splitted up the oulu dataset videos 1_1_01_1 into 1_1_01_1_1, 1_1_01_1_2,1_1_01_1_3 like this....,

def get_single_image_x(self, image_path, map_path, videoname):

for name in os.listdir(map_path):
    print(name)

print(os.path.isfile(os.path.join(map_path, videoname)))

frames_total = len([name for name in os.listdir(map_path) if os.path.isfile(os.path.join(map_path, name))])
#print(frames_total)

# random choose 1 frame
for temp in range(500):
    image_id = np.random.randint(1, frames_total-1)
    
    s = "_%03d_scene" % image_id
    image_name = videoname + s + '.jpg'
    bbox_name = videoname + s + '.dat'
    bbox_path = os.path.join(image_path, bbox_name)
    s = "_%03d_depth1D" % image_id
    map_name = videoname + s + '.jpg'
    map_path2 = os.path.join(map_path, map_name)

    # some .dat & map files have been missing  
    if os.path.exists(bbox_path) & os.path.exists(map_path2):
        map_x_temp2 = cv2.imread(map_path2, 0)
        if map_x_temp2 is not None:
            break

about this one, 

here the error occurs, FileNotFoundError: [WinError 3] The system cannot find the path specified: 'D:/face_anti_spoofing/dataset/OULUNPU/Data/demo/Train/Depth_map_1/1_1_01_3',..

any to please, explain to me about it,.

Thanks in advance

@Zhengtq @amsturdy @ZitongYu

from cdcn.

610821216 avatar 610821216 commented on June 25, 2024

FileNotFoundError: [WinError 3] The system cannot find the path specified: 'D:/face_anti_spoofing/dataset/OULUNPU/Data/demo/Train/Depth_map_1/1_1_01_3'

Even I have images in this folder,...

How about the def single_iamge_x():

I have confusion in it,

Because i have already splitted up the oulu dataset videos 1_1_01_1 into 1_1_01_1_1, 1_1_01_1_2,1_1_01_1_3 like this....,

def get_single_image_x(self, image_path, map_path, videoname):

for name in os.listdir(map_path):
    print(name)

print(os.path.isfile(os.path.join(map_path, videoname)))

frames_total = len([name for name in os.listdir(map_path) if os.path.isfile(os.path.join(map_path, name))])
#print(frames_total)

# random choose 1 frame
for temp in range(500):
    image_id = np.random.randint(1, frames_total-1)
    
    s = "_%03d_scene" % image_id
    image_name = videoname + s + '.jpg'
    bbox_name = videoname + s + '.dat'
    bbox_path = os.path.join(image_path, bbox_name)
    s = "_%03d_depth1D" % image_id
    map_name = videoname + s + '.jpg'
    map_path2 = os.path.join(map_path, map_name)

    # some .dat & map files have been missing  
    if os.path.exists(bbox_path) & os.path.exists(map_path2):
        map_x_temp2 = cv2.imread(map_path2, 0)
        if map_x_temp2 is not None:
            break

about this one, 

here the error occurs, FileNotFoundError: [WinError 3] The system cannot find the path specified: 'D:/face_anti_spoofing/dataset/OULUNPU/Data/demo/Train/Depth_map_1/1_1_01_3',..

any to please, explain to me about it,.

Thanks in advance

@Zhengtq @amsturdy @ZitongYu

I have the same problem.. have you solved it?

from cdcn.

punitha-valli avatar punitha-valli commented on June 25, 2024

from cdcn.

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.