CAT-Net icon indicating copy to clipboard operation
CAT-Net copied to clipboard

error

Open Tan-yong opened this issue 3 years ago • 4 comments
trafficstars

Hi,Sorry to bother you.when I try to run tools/infer.py by args = argparse.Namespace(cfg='../experiments/CAT_DCT_only.yaml', opts=['TEST.MODEL_FILE', '../output/splicing_dataset/CAT_DCT_only/DCT_only_v2.pth.tar', 'TEST.FLIP_TEST', 'False', 'TEST.NUM_SAMPLES', '0']) and test_dataset = splicing_dataset(crop_size=None, grid_crop=True, blocks=('DCTvol', 'qtable'), DCT_channels=1, mode='arbitrary', read_from_jpeg=True) # DCT stream .

I just get: D:\conda\envs\cat\python.exe C:/Users/ty/Desktop/suanfayichengxu/CAT-Net-main/tools/infer.py <Splicing.data.dataset_arbitrary.arbitrary object at 0x00000206334F4F28>(0) crop_size=None, grid_crop=True, blocks=('DCTvol', 'qtable'), mode=arbitrary, read_from_jpeg=True, class_weight=tensor([1., 1.])

=> loading model from ../output/splicing_dataset/CAT_DCT_only/DCT_only_v2.pth.tar 0it [00:00, ?it/s]Epoch: 199 0it [00:01, ?it/s]

Process finished with exit code 0

Tan-yong avatar Mar 28 '22 12:03 Tan-yong

Hi, It seems that the 'input' directory is empty. Put images there and run infer.py. Thanks

CauchyComplete avatar Mar 29 '22 06:03 CauchyComplete

thanks,it's work now,It's my GPU problem

Tan-yong avatar Mar 29 '22 07:03 Tan-yong

Glad it works now!

CauchyComplete avatar Mar 29 '22 07:03 CauchyComplete

谢谢,现在工作了,是我的GPU问题

I'm having the same problem. What can I do to fix it?

Cococc2 avatar Oct 11 '23 02:10 Cococc2