HighwayWu / LASTED

Synthetic Image Detection
MIT License
51 stars 2 forks source link

I try to train the model using code and the code has some errors #11

Closed zj56 closed 6 months ago

zj56 commented 6 months ago

python3 main.py \ --model 'LASTED' \ --train_file 'annotation/Test_num1047.txt' \ --num_class 4 \ --val_ratio 0.005 \ --test_file 'annotation/Test_num410.txt' \ --isTrain 1 \ --lr 0.0001 \ --data_size 448 \ --batch_size 48 \ --gpu '0,1,2,3' \ 2>&1 | tee weights/log.log

20240302_094543
HighwayWu commented 6 months ago

Thanks for your asking. Accoding to the error, the input should be 4D tensor, which means the [48, 1, 3, 448, 448] => [48, 3, 448, 448].