Open td042 opened 6 years ago
@td042 Hi, if you follow the steps in README, you will get the npz-files.
python training\testSetPreparation.py
will create the npz-files, i.e. dataset_nimgs=x*.npz, x is a number which depends on the size of your dataset, so it might not be 40 and 9.
After running TestSetPreparation.py I got the files w300Set.npz, commonSet.npz and challengingSet.npz. Are these the files you meant?
@td042 Yes.
Now I have chosen w300Set.npz as trainSet and commonSet.npz as validationSet. After the execution, I received the following error message. Do you have any ideas about what I did wrong? Also, I did not make any changes to the STAGE variable. What does the variable mean and how do I have to make the adjustments? Sorry for the many questions, I do not know all that well about deep learning yet.
ValueError Traceback (most recent call last)
@td042 You should do python trainingSetPreparation.py
to make trainset, meanwhile, you should set STAGE
to 1, I've tried to git clone this repo and I found no problem. The meaning of STAGE
can be found in the paper. However, your issue is strange, did you use the same version of TensorFlow as I used? I just cannot reproduce your issue, so would you mind showing your environment and steps in detail?
I forgot to run trainingSetPreparation.py. Now I have exchanged the training and validation set through the files "dataset_nimgs = 100perturbations = [] size = [112, 112] .npz", and "dataset_nimgs = 40_perturbations = [0.2, 0.2, 20, 0.25] _size = [112, 112 ] .npz "and I have set the STAGE variable to 1, but I still get the same error message. I use Floydhub with Tensorflow 1.5 and jupyter notebook environment (floyd run --mode jupyter --gpu --env tensorflow-1.5)
@td042 According to the error message, it seems that you created two graphs, I don't know what's wrong with the code, I can run trainDAN.py
with no error occurred, if you are using Jupiter notebook, try use python in the Terminal.
2018-03-23 23:12:32.497644: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.2 AVX AVX2 FMA Starting training...... Epoch: 0 Batch: 0 TestErr: 0.16190773 BatchErr: 0.4041887
I was wondering what npz-files do I have to load in line 15 and 16 in order to train the model? At the moment those files aren't in the directory "data".
(14)>>>datasetDir = "../data/" (15)>>>trainSet = ImageServer.Load(datasetDir + "dataset_nimgs=40_perturbations=[0.2, 0.2, 20, 0.25]_size=[112, 112].npz") (16)>>>validationSet = ImageServer.Load(datasetDir + "dataset_nimgs=9_perturbations=[]_size=[112, 112].npz")