-
Notifications
You must be signed in to change notification settings - Fork 97
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
data_file when training own images #62
Comments
Using the absolute paths of the target images, e.g., /data/proj/a.png or D:\\proj\\a.png. And yes, one line for one file path in the data file. The file extension name does not matter as long as it is readable text for IO functions. |
Thank you! that worked but then I ran into the next issue when trying to train and it's not clear what cauase is. The error stack trace is: (inpainting_gmcnn) G:\pythonAI\inpainting_gmcnn\tensorflow>python train.py --dataset celeba --data_file G:\pythonAI\training_images\source_images\t2.index --pretrain_network 1 WARNING:tensorflow:From G:\pythonAI\inpainting_gmcnn\tensorflow\data\data.py:17: slice_input_producer (from tensorflow.python.training.input) is deprecated and will be removed in a future version. WARNING:tensorflow:From G:\pythonAI\inpainting_gmcnn\tensorflow\data\data.py:22: The name tf.image.resize_image_with_crop_or_pad is deprecated. Please use tf.image.resize_with_crop_or_pad instead. WARNING:tensorflow:From G:\pythonAI\inpainting_gmcnn\tensorflow\data\data.py:24: batch (from tensorflow.python.training.input) is deprecated and will be removed in a future version. WARNING:tensorflow:From G:\pythonAI\inpainting_gmcnn\tensorflow\net\ops.py:155: py_func (from tensorflow.python.ops.script_ops) is deprecated and will be removed in a future version. WARNING:tensorflow:From G:\pythonAI\inpainting_gmcnn\tensorflow\net\network.py:35: conv2d (from tensorflow.python.layers.convolutional) is deprecated and will be removed in a future version. WARNING:tensorflow:From G:\pythonAI\inpainting_gmcnn\tensorflow\net\network.py:66: The name tf.image.resize_nearest_neighbor is deprecated. Please use tf.compat.v1.image.resize_nearest_neighbor instead. Pretrain the whole net with only reconstruction loss. WARNING:tensorflow:From G:\pythonAI\inpainting_gmcnn\tensorflow\net\network.py:225: The name tf.summary.scalar is deprecated. Please use tf.compat.v1.summary.scalar instead. WARNING:tensorflow:From G:\pythonAI\inpainting_gmcnn\tensorflow\net\network.py:137: flatten (from tensorflow.python.layers.core) is deprecated and will be removed in a future version. WARNING:tensorflow:From G:\pythonAI\inpainting_gmcnn\tensorflow\net\network.py:287: The name tf.GraphKeys is deprecated. Please use tf.compat.v1.GraphKeys instead. WARNING:tensorflow:From train.py:20: The name tf.get_variable is deprecated. Please use tf.compat.v1.get_variable instead. WARNING:tensorflow:From train.py:24: The name tf.train.AdamOptimizer is deprecated. Please use tf.compat.v1.train.AdamOptimizer instead. WARNING:tensorflow:From G:\pythonAI\inpainting_gmcnn\lib\site-packages\tensorflow_core\python\ops\math_grad.py:1424: where (from tensorflow.python.ops.array_ops) is deprecated and will be removed in a future version. WARNING:tensorflow:From train.py:32: The name tf.summary.merge_all is deprecated. Please use tf.compat.v1.summary.merge_all instead. WARNING:tensorflow:From train.py:34: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead. 2020-08-25 10:37:24.089038: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 WARNING:tensorflow:From train.py:50: The name tf.summary.FileWriter is deprecated. Please use tf.compat.v1.summary.FileWriter instead. WARNING:tensorflow:From train.py:53: start_queue_runners (from tensorflow.python.training.queue_runner_impl) is deprecated and will be removed in a future version. During handling of the above exception, another exception occurred: Traceback (most recent call last): Original stack trace for 'random_uniform_1': (inpainting_gmcnn) G:\pythonAI\inpainting_gmcnn\tensorflow> |
is it because I don't have enough images? This is just a test run with 181 images |
Above was with tensorflow implementation. I also tried the pytorch implementation in windows but it causes this error on training: (inpainting_gmcnn) G:\pythonAI\inpainting_gmcnn\pytorch>python train.py --dataset celeba --data_file G:\pythonAI\training_images\source_images\train_images.index
|
I finally got the pytorch implementation working after several tweaks. |
Hello @shepnerd and @qwerdbeta,
Please, how can I fix this error? My aim is to first make the codes run, and then train again with my own dataset. Any comments or suggestions would be highly appreciated. Best regards, |
u need creat a file.txt or any others file,then input the datasetpath to the file's every lines |
I got the same error. How did you get the pytorch implementation from working? Thanks |
Dear I do not understand how to use my personalized mask as input. |
Does anyone know the format of the data file with all of the paths when training your own images? I can't figure it out. I tried a .flist file tat had each image on a newline but that didn't work. Commas didn't either. Is it some special file format?
The text was updated successfully, but these errors were encountered: