06 2022 档案
摘要:# import torchimport numpy as np # 确认是否为 Tensor 类型a = torch.constant([1.])b = torch.constant([True, False])c = torch.constant("hello, world.")d = np.a
阅读全文
摘要:关于在本地远端使用服务器tensorboard,之前一直在ubuntu上使用tensboard,在windows上多次尝试均失败,经请教身边同学,终于解决了该问题,现记录如下: 首先需要在连接服务器的同时,在本地电脑终端上进行端口转发: cmd > ssh -L 16006:127.0.0.1:60
阅读全文
摘要:rad算法 https://github.com/MishaLaskin/rad/issues/9 中的translate aug中的script参数设置: CUDA_VISIBLE_DEVICES=0 python train.py --domain_name cartpole --task_na
阅读全文
摘要:def random_convolution(imgs): ''' random covolution in "network randomization" (imbs): B x (C x stack) x H x W, note: imgs should be normalized and to
阅读全文
摘要:在代码实现中发现, images.flip([3]) 是使得图像沿着X轴随机进行翻转。即这里的3代表的是X轴。 因为images.shape=[128,9,84,84]。因此,这里的3表示的 wide 的值。 同理,如果需要沿着2旋转,即沿着Y轴进行旋转,也是可以的。
阅读全文
摘要:在执行RAD的源代码时,发现一个问题,因在服务器上不能对环境进行render,则在main函数初始添加: from pyvirtualdisplay import Display disp = Display() disp.start() 此时可实现render,但当使用 import pdb; p
阅读全文