当我截取浏览器的屏幕截图时,控制台会发出一声“哔哔”声。声音。问题是我的脚本有一个休眠0.1的循环。有没有办法关闭"哔哔"声音?
#!/bin/sh
while :
do
import -window "Welcome - Mozilla Firefox" screen.png
convert screen.png -crop 713x50+5+900 output.png
....
sleep 0.1
done
答案 0 :(得分:2)
根据imagemagick.org上的精细文档,import
有一个-silent
选项可用于抑制哔哔声。
答案 1 :(得分:0)
你试过# These are the weights and biases of the mu and sigma on the encoder side
w_c_mu = tf.Variable(tf.truncated_normal([7 * 7 * 256, latent_dim], stddev=0.1), name='weight_fc_mu')
b_c_mu = tf.Variable(tf.constant(0.1, shape=[latent_dim]), name='biases_fc_mu')
w_c_sig = tf.Variable(tf.truncated_normal([7 * 7 * 256, latent_dim], stddev=0.1), name='weight_fc_sig')
b_c_sig = tf.Variable(tf.constant(0.1, shape=[latent_dim]), name='biases_fc_sig')
epsilon = tf.random_normal([1, latent_dim])
with tf.variable_scope('mu'):
mu = tf.nn.bias_add(tf.matmul(conv4_reshaped, w_c_mu), b_c_mu)
tf.summary.histogram('mu', mu)
with tf.variable_scope('stddev'):
stddev = tf.nn.bias_add(tf.matmul(conv4_reshaped, w_c_sig), b_c_sig)
tf.summary.histogram('stddev', stddev)
with tf.variable_scope('z'):
# This formula was adopted from the following paper: http://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=7979344
latent_var = mu + tf.multiply(tf.sqrt(tf.exp(stddev)), epsilon)
tf.summary.histogram('features_sig', stddev)
...
with tf.name_scope('loss_KL'):
temp2 = 1 + tf.log(tf.square(stddev + 1e-9)) - tf.square(mu) - tf.square(stddev)
KL_term = - 0.5 * tf.reduce_sum(temp2, reduction_indices=1)
tf.summary.scalar('KL_term', tf.reduce_mean(KL_term))
with tf.name_scope('total_loss'):
variational_lower_bound = tf.reduce_mean(log_likelihood + KL_term)
tf.summary.scalar('loss', variational_lower_bound)
with tf.name_scope('optimizer'):
update_ops = tf.get_collection(tf.GraphKeys.UPDATE_OPS)
with tf.control_dependencies(update_ops):
optimizer = tf.train.AdamOptimizer(0.00001).minimize(variational_lower_bound)
吗?
当你错误地点击标签时它确实有效,它可能适合你