一、对于安装了驱动,登陆的时候却黑屏
首先感谢这篇文章救我狗命:ubuntu 安装nvidia驱动后开机黑屏解决方案记录
情况描述:
每次当我出现识别不到cuda的时候,我会率先弄出三板斧:
恩,最后一行,是False,上一次遇到的时候,最终是重装驱动才弄好。
sudo bash ****
驱动安装,前两个,都是continue啥的,但是这个:
Would you like to run the nvidia-xconfig utility to automatically update your X
configuration file so that the NVIDIA X driver will be used when you restart X?
Any pre-existing X configuration file will be backed up.
Yes No
一定要选No!!!!
不然,你开机就是黑屏
然后根据博客内容,就搞定了,感谢。
二、输入图像尺寸不匹配
accum = torch.lerp(accum, torch.cat((buffers[key][..., :-1], torch.ones_like(buffers[key][..., -1:])), dim=-1), alpha)
RuntimeError: The size of tensor a (1000) must match the size of tensor b (1024) at non-singleton dimension 2
遇到这个问题,也就是1000和1024的不匹配
分析了下之后发现,是输入的图像分辨率的问题,原本每一张图片都是10241024的,但是py3d渲染出来是10001000的,所以只需要在json文件中,进行修改即可。
{
"ref_mesh": "data/spot/spot.obj",
"random_textures": true,
"iter": 3000,
"save_interval": 100,
"texture_res": [ 1024, 1024 ],
"train_res": [1024, 1024],
"batch": 1,
"learning_rate": [0.03, 0.005],
"ks_min" : [0, 0.001, 0.0],
"ks_max" : [0, 1.0, 1.0],
"envlight": "data/irrmaps/aerodynamics_workshop_2k.hdr",
"lock_pos" : false,
"display": [{"latlong" : true}],
"background" : "white",
"denoiser": "bilateral",
"n_samples" : 14,
"env_scale" : 2.0,
"gshell_grid" : 64,
"validate" : true,
"laplace_scale" : 6000,
"boxscale": [1, 1, 1],
"aabb": [-1, -1, -1, 1, 1, 1]
}
恩,就是在"texture_res"、"train_res"两个中,把1024改成1000就行