Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code implementation error? #15

Closed
amsturdy opened this issue Apr 26, 2020 · 7 comments
Closed

Code implementation error? #15

amsturdy opened this issue Apr 26, 2020 · 7 comments

Comments

@amsturdy
Copy link

amsturdy commented Apr 26, 2020

Central Difference Convolution's implementation is'not match with the Eq.(4) of paper ?
kernel_diff should be only related with the center point of inputs' local domain ?
捕获

@ZitongYu
Copy link
Owner

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

@Zhengtq
Copy link

Zhengtq commented Jun 17, 2020

@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.

@punitha-valli
Copy link

@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

@punitha-valli
Copy link

@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

@punitha-valli
Copy link

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

@610821216
Copy link

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?

@punitha-valli
Copy link

punitha-valli commented Jan 25, 2021 via email

@ZitongYu ZitongYu closed this as completed May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants