Guest User

Untitled

a guest
May 23rd, 2024
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. ---------------------------------------------------------------------------
  2. ValueError Traceback (most recent call last)
  3. Cell In[28], line 12
  4. 9 reduce_lr_loss = ReduceLROnPlateau(monitor='val_loss', cooldown=1, verbose=1, min_delta=0.00001, factor=0.1, patience=2, mode='min')
  5. 10 callbacks = [early_stopping, mcp_save, reduce_lr_loss, csvlogger]
  6. ---> 12 conv_model = unet_2D(config)
  7. 14 # FIT THE MODEL
  8. 15 history = conv_model.fit(
  9. 16 x=X_train,
  10. 17 y=y_train,
  11. (...)
  12. 22 callbacks=callbacks
  13. 23 )
  14.  
  15. Cell In[25], line 51, in unet_2D(config)
  16. 49 for jj in range(num_conv_per_block):
  17. 50 first_block_input = final_input if(ii == 0 and jj == 0) else conv
  18. ---> 51 conv = L.Conv2D(nfmaps, filter_width, padding=padding, dilation_rate=dilation)(first_block_input)
  19. 52 if(batch_norm): conv = L.BatchNormalization()(conv)
  20. 53 conv = L.LeakyReLU()(conv) if(conv_activation == 'leaky_relu') else L.Activation(conv_activation)(conv)
  21.  
  22. File ~\anaconda3\lib\site-packages\keras\utils\traceback_utils.py:70, in filter_traceback.<locals>.error_handler(*args, **kwargs)
  23. 67 filtered_tb = _process_traceback_frames(e.__traceback__)
  24. 68 # To get the full stack trace, call:
  25. 69 # `tf.debugging.disable_traceback_filtering()`
  26. ---> 70 raise e.with_traceback(filtered_tb) from None
  27. 71 finally:
  28. 72 del filtered_tb
  29.  
  30. File ~\anaconda3\lib\site-packages\keras\backend.py:2100, in RandomGenerator.random_uniform(self, shape, minval, maxval, dtype, nonce)
  31. 2098 if nonce:
  32. 2099 seed = tf.random.experimental.stateless_fold_in(seed, nonce)
  33. -> 2100 return tf.random.stateless_uniform(
  34. 2101 shape=shape,
  35. 2102 minval=minval,
  36. 2103 maxval=maxval,
  37. 2104 dtype=dtype,
  38. 2105 seed=seed,
  39. 2106 )
  40. 2107 return tf.random.uniform(
  41. 2108 shape=shape,
  42. 2109 minval=minval,
  43. (...)
  44. 2112 seed=self.make_legacy_seed(),
  45. 2113 )
  46.  
  47. ValueError: Memory growth cannot differ between GPU devices
Advertisement
Add Comment
Please, Sign In to add comment