-
Notifications
You must be signed in to change notification settings - Fork 430
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
About Step1 Training MagicPoint on Synthetic Shapes Problem #282
Comments
My apologies. I tried to specify the batch size by adding .batch(batch_size=32) |
Hi, why are you using such an old version of Tensorflow? I suggest you to upgrade, e.g. to 1.12 as in #173 (comment) |
Hello, thanks for the great job, |
Hi, this seems to be very related to this issue: #189 In this other case, it was due to an incompatibility of ampere technology (SM_86) and old cuda + tf versions. Could it be the same for you? |
I use cuda 11.4 so probably its an incompatibility of cuda-tf version. I will try the pytorch implementation as mentioned in #189 otherwise I will try to downgrade cuda version. |
Dear author, Hello! ==> WARNING: A newer version of conda exists. <== Please update conda by running
Package Planenvironment location: /home/sunlab/anaconda3/envs/linenv added / updated specs: The following packages will be downloaded:
The following NEW packages will be INSTALLED: _libgcc_mutex pkgs/main/linux-64::_libgcc_mutex-0.1-main Proceed ([y]/n)? y Downloading and Extracting Packages To activate this environment, use$ conda activate linenvTo deactivate an active environment, use$ conda deactivate(base) sunlab@sunlab-ThinkStation-P520:~$ conda activate linenv ==> WARNING: A newer version of conda exists. <== Please update conda by running
Package Planenvironment location: /home/sunlab/anaconda3/envs/linenv added / updated specs: The following NEW packages will be INSTALLED: _tflow_select pkgs/main/linux-64::_tflow_select-2.1.0-gpu Proceed ([y]/n)? y Preparing transaction: done [07/06/2023 23:38:45 INFO] Caching data, fist access will take some time. |
I ran into this problem,too,but I don't know how to solve it. |
|
Hi, this might be due to the warning about the cache returned by tensorflow at the end of your output. Could you try training without caching the data, i.e. by setting 'cache_in_memory' to false in Alternatively, you could also add the field 'on-the-fly' in a new line after 'cache_in_memory' and set it to true. This would generate the shapes on the fly instead of pre-generating them, and could be a good way to check if the error is caused by caching issues. |
I apologize for responding to your message so late, I tried your method but it didn't solve my problem. This proves that the error is not caused by caching issues. |
Dear Author, Hello!
I am using TF1.2 and python3.6 under linux system.Having an out-of-index problem while executing step 1 to extract gaussian_noise. I changed line 184 in the file /superpoint/superpoint/synthetic_shapes.py to tf.contrib.data.Dataset.map_parallel = lambda self, fn: self.map( fn, num_parallel_calls=config['num_parallel_calls']), because I see that tf1.4 and below use data with contrib, the other parts have not been modified, but look at the content of the error report from this sentence into.
The following is the content of the console error reporting:
(test) liusikang@4029GP-TRT:~/cord/superpoint/superpoint$ python experiment.py train configs/magic-point_shapes.yaml magic-point_synth
/home/liusikang/anaconda3/envs/test/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:458: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/liusikang/anaconda3/envs/test/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:459: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/liusikang/anaconda3/envs/test/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:460: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/liusikang/anaconda3/envs/test/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:461: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/liusikang/anaconda3/envs/test/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:462: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/liusikang/anaconda3/envs/test/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:465: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
experiment.py:155: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
config = yaml.load(f)
[12/05/2022 10:17:55 INFO] Running command TRAIN
[12/05/2022 10:17:55 INFO] Number of GPUs detected: 1
INFO:tensorflow:Extracting archive for primitive draw_lines.
[12/05/2022 10:17:58 INFO] Extracting archive for primitive draw_lines.
INFO:tensorflow:Extracting archive for primitive draw_polygon.
[12/05/2022 10:18:02 INFO] Extracting archive for primitive draw_polygon.
INFO:tensorflow:Extracting archive for primitive draw_multiple_polygons.
[12/05/2022 10:18:05 INFO] Extracting archive for primitive draw_multiple_polygons.
INFO:tensorflow:Extracting archive for primitive draw_ellipses.
[12/05/2022 10:18:08 INFO] Extracting archive for primitive draw_ellipses.
INFO:tensorflow:Extracting archive for primitive draw_star.
[12/05/2022 10:18:11 INFO] Extracting archive for primitive draw_star.
INFO:tensorflow:Extracting archive for primitive draw_checkerboard.
[12/05/2022 10:18:14 INFO] Extracting archive for primitive draw_checkerboard.
INFO:tensorflow:Extracting archive for primitive draw_stripes.
[12/05/2022 10:18:17 INFO] Extracting archive for primitive draw_stripes.
INFO:tensorflow:Extracting archive for primitive draw_cube.
[12/05/2022 10:18:20 INFO] Extracting archive for primitive draw_cube.
INFO:tensorflow:Extracting archive for primitive gaussian_noise.
[12/05/2022 10:18:23 INFO] Extracting archive for primitive gaussian_noise.
Traceback (most recent call last):
File "experiment.py", line 162, in
args.func(config, output_dir, args)
File "experiment.py", line 99, in _cli_train
train(config, config['train_iter'], output_dir, pretrained_dir)
File "experiment.py", line 22, in train
with _init_graph(config) as net:
File "/home/liusikang/anaconda3/envs/test/lib/python3.6/contextlib.py", line 82, in enter
return next(self.gen)
File "experiment.py", line 73, in _init_graph
dataset = get_dataset(config['data']['name'])(**config['data'])
File "/home/liusikang/cord/superpoint/superpoint/datasets/base_dataset.py", line 108, in init
self.tf_splits[n] = self._get_data(self.dataset, n, **self.config)
File "/home/liusikang/cord/superpoint/superpoint/datasets/synthetic_shapes.py", line 191, in _get_data
(filenames[split_name]['images'], filenames[split_name]['points'])).batch(batch_size=32)
File "/home/liusikang/anaconda3/envs/test/lib/python3.6/site-packages/tensorflow/contrib/data/python/ops/dataset_ops.py", line 473, in from_tensor_slices
return TensorSliceDataset(tensors)
File "/home/liusikang/anaconda3/envs/test/lib/python3.6/site-packages/tensorflow/contrib/data/python/ops/dataset_ops.py", line 896, in init
batch_dim = flat_tensors[0].get_shape()[0]
File "/home/liusikang/anaconda3/envs/test/lib/python3.6/site-packages/tensorflow/python/framework/tensor_shape.py", line 500, in getitem
return self._dims[key]
IndexError: list index out of range
Looking forward to your reply!
The text was updated successfully, but these errors were encountered: