keytool -genkey -v -keystore some_filename.keystore -alias your_alias -keyalg RSA -keysize 2048 -validity 10000
This should prompt
- Keystore Password
- Name
- Organizational Unit
- Organization Name
Based on Summary Trace API,
device_name = tf.test.gpu_device_name()
if not tf.test.is_gpu_available():
raise SystemError('GPU device not found')
print('Found GPU at: {}'.format(device_name))
os.makedirs(os.path.join(args.exp_dir, 'plugins/profile'), exist_ok=True)
tf.summary.trace_on(graph=True, profiler=True)
tracing_params = params.copy()If you want to get the image plot from plt as numpy array,
def _retrieve_image(fig):
fig.canvas.draw()
width, height = fig.get_size_inches() * fig.get_dpi()
image = np.frombuffer(fig.canvas.tostring_argb(), dtype='uint8').reshape(int(height), int(width), 4)
image = image[:, :, [1, 2, 3, 0]] # convert from argb to rgba
plt.close(fig)
return imageConverting from RGB (3 Channel) to Grayscale (1 Channel) involves [0.2989, 0.5870, 0.1140] weighted averaging.
So when converting Grayscale (1 Channel) to RGB (3 Channel), is it okay to repeat the single channel thrice?
image_rgb = np.full([28, 28, 3], fill_value=1.0)
image_bw_cv = cv2.cvtColor(image_rgb, cv2.COLOR_BGR2GRAY)
image_bw = np.dot(image_rgb[..., :3], [0.2989, 0.5870, 0.1140])
image_bw = np.array(image_bw, dtype='uint8')
image_rgb_converted = np.stack([image_bw]*3, axis=-1)
.deb from https://developer.nvidia.com/nvidia-tensorrt-6x-downloadsudo dpkg -i nv-tensorrt-repo-ubuntu1x04-cudax.x-trt6.x.x.x-ga-yyyymmdd_1–1_amd64.debcurl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -sudo apt-get updatesudo apt-get install tensorrtdpkg -l | grep TensorRTBuild estimator
config = tf.estimator.RunConfig(save_summary_steps=100, keep_checkpoint_every_n_hours=1, keep_checkpoint_max=1, model_dir=params.model_dir, save_checkpoints_steps=500)
estimator = tf.estimator.Estimator(model_fn, params=params, config=config)Modify
def log_all_losses(embeddings, labels, params):
for (func_name, func) in loss_funcs.items():
func(embeddings, labels, params)to
Clone MatConvNet repo or
download MATLAB Addon Matconvnet and it usually gets downloaded to /home/saravanabalagi/MATLAB Add-Ons/Collections/vlfeat_matconvnet/vlfeat-matconvnet-1e5ae7b on a Linux machine.
From here it will be called matconvnet_root.