安装驱动后,黑屏和输入图像尺寸不匹配的解决和记录

一、对于安装了驱动,登陆的时候却黑屏

首先感谢这篇文章救我狗命: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就行

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

周末不下雨

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值