我有一个图像目录,我想动态地组合3-10个图像。它将在任何地方从3-10张图片.我的想法是创建n个变量,然后将这些n个变量传递给image_append。/Desktop/',pattern = '.tif') ##list of images, could be 3-10assign(paste("image", h,
tf.tensor_scatter_nd_update(mask, [[idx] for idx in indices], tf.ones(n_to_keep))
return mask 然而,对于感兴趣的情况,它的工作速度相当慢,张量的典型大小是10^3-10^4元素,k的量级是‘10^2-10^3’。