Skip to content

Instantly share code, notes, and snippets.

@CraigMyles
Created April 29, 2020 12:56
Show Gist options
  • Save CraigMyles/12800936b55830d92aaf6a4b7bbb913e to your computer and use it in GitHub Desktop.
Save CraigMyles/12800936b55830d92aaf6a4b7bbb913e to your computer and use it in GitHub Desktop.
craig@craig-MS-7C37:~/Documents/myAttempt$ python3 copy_of_copy_of_example_on_brats2018.py
Using TensorFlow backend.
/home/craig/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:516: 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/craig/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:517: 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/craig/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:518: 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/craig/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:519: 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/craig/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:520: 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/craig/.local/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:525: 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)])
/home/craig/.local/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: 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/craig/.local/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: 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/craig/.local/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: 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/craig/.local/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: 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/craig/.local/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: 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/craig/.local/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: 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)])
Progress: [=========================](100 %)2020-04-29 04:37:03.450630: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2020-04-29 04:37:03.470322: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 3800180000 Hz
2020-04-29 04:37:03.470652: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x42ec170 executing computations on platform Host. Devices:
2020-04-29 04:37:03.470666: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0): <undefined>, <undefined>
2020-04-29 04:37:03.474053: W tensorflow/compiler/jit/mark_for_compilation_pass.cc:1412] (One-time warning): Not using XLA:CPU for cluster because envvar TF_XLA_FLAGS=--tf_xla_cpu_global_jit was not set. If you want XLA:CPU, either set that envvar, or use experimental_jit_scope to enable XLA:CPU. To confirm that XLA is active, pass --vmodule=xla_compilation_cache=1 (as a proper command-line flag, not via TF_XLA_FLAGS) or set the envvar XLA_FLAGS=--xla_hlo_profile.
WARNING:tensorflow:From /home/craig/.local/lib/python3.6/site-packages/tensorflow/python/ops/math_grad.py:1250: add_dispatch_support.<locals>.wrapper (from tensorflow.python.ops.array_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.where in 2.0, which has the same broadcast rule as np.where
WARNING:tensorflow:From /home/craig/.local/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py:422: The name tf.global_variables is deprecated. Please use tf.compat.v1.global_variables instead.
Epoch 1/1
2020-04-29 04:37:23.880294: W tensorflow/core/framework/allocator.cc:107] Allocation of 1698693120 exceeds 10% of system memory.
2020-04-29 04:37:23.880294: W tensorflow/core/framework/allocator.cc:107] Allocation of 1698693120 exceeds 10% of system memory.
2020-04-29 04:37:23.882422: W tensorflow/core/framework/allocator.cc:107] Allocation of 1698693120 exceeds 10% of system memory.
2020-04-29 04:37:23.882422: W tensorflow/core/framework/allocator.cc:107] Allocation of 1698693120 exceeds 10% of system memory.
2020-04-29 04:37:24.910358: W tensorflow/core/framework/allocator.cc:107] Allocation of 1698693120 exceeds 10% of system memory.
1/4 [======>.......................] - ETA: 54s - loss: 0.4086 - Dec_GT_Output_loss: -0.0043 - Dec_VAE_Output_loss: 0.4129 - Dec_GT_Output_dice_coefficient: 0.02/4 [==============>...............] - ETA: 29s - loss: 0.6486 - Dec_GT_Output_loss: -0.0059 - Dec_VAE_Output_loss: 0.6544 - Dec_GT_Output_dice_coefficient: 0.03/4 [=====================>........] - ETA: 13s - loss: 0.5446 - Dec_GT_Output_loss: -0.0042 - Dec_VAE_Output_loss: 0.5488 - Dec_GT_Output_dice_coefficient: 0.04/4 [==============================] - 51s 13s/step - loss: 0.4632 - Dec_GT_Output_loss: -0.0044 - Dec_VAE_Output_loss: 0.4677 - Dec_GT_Output_dice_coefficient: 0.0044 - Dec_VAE_Output_dice_coefficient: 0.4278
(240, 240)
[0 1]
1484
(96, 64)
[0 1]
75
[0 1]
168
[0 1]
231
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment