mofanv / darknetz

runs several layers of a deep learning model in TrustZone
MIT License
83 stars 27 forks source link

Couldn't open file: tmp/backup//mnist_lenet/weights #36

Open zzyupupup opened 11 months ago

zzyupupup commented 11 months ago

When I execute the command darknetp classifier train -pp_start 4 -pp_end 10 cfg/mnist.dataset cfg/mnist_lenet.cfg to complete the training, the following error occurs

Saving weights to tmp/backup//mnist_lenet.weight
Couldn't open file: tmp/backup//mnist_lenet/weights

I made changes optee/out-br/target/root/cfg/mnist.dataset

backup = models/mnist

after completing training:

Saving weights to tmp/backup//mnist_lenet.weight

But there is no new weight file saved in the folder

execute the command darknetp classifier predict -pp_start 4 -pp_end 10 cfg/mnist.dataset cfg/mnist_lenet.cfg models/mnist/mnist_lenet.weights data/mnist/images/t_00007_c3.png

100.00%: 7
 0.00%: 1
 0.00%: 2
 0.00%: 0
 0.00%: 4

This is obviously wrong,How can I solve it?

Any help is appreciated!

isgeng commented 1 month ago

@zzyupupup The same problem occurs to me. please have you solved this problem?

execute the command darknetp classifier train -pp_start 4 -pp_end 10 cfg/mnist.dataset cfg/mnist_lenet.cfg

Result:

Saving weights to tmp/backup//mnist_lenet.weights   
Couldn't open file: tmp/backup//mnist_lenet.weights

when I execute the command darknetp classifier predict -pp_start 4 -pp_end 10 cfg/mnist.dataset cfg/mnist_lenet.cfg models/mnist/mnist_lenet.weights data/mnist/images/t_00007_c3.png

Result:

output file: /media/results/predict_mnist_lenet_pps4_ppe10.txt  
data/mnist/images/t_00007_c3.png: Predicted in 0.049031 seconds.  
-0.00%: 0  
 0.00%: 1  
 -inf%: 2
-8.37%: 3  
 0.00%: 4
user CPU start: 3.403040; end: 3.403840
kernel CPU start: 13.971354; end: 13.974640
Max: 2304  kilobytes
vmsize:281470681747204; vmrss:281470681745664; vmdata:281470681744256; vmstk:281470681743492; vmexe:408; vmlib:281470681745604

@mofanv Can you help analyze the possible causes? Thanks.