====Pytorch/Scaled Yolov42 ImportError: libGL.so.1: cannot open shared object file: No such file or directory sudo apt install libgl1-mesa-glx 2021. 7. 6. RuntimeError: a view of a leaf Variable that requires grad is being used in an in-place operation. b [:, 4] + = math.log (8 / (640 / s) ** 2) # obj (8 objects per 640 image) b [:, 5 :] + = math.log (0.6 / (m.nc-0.99)) cf가 None이면 else torch.log (cf / cf.sum ()) # cls ↓ b.data[:, 4] += math.log(8 / (640 / s) ** 2) # obj (8 objects per 640 image) b.data[:, 5:] += math.log(0.6 / (m.nc - 0.99)) if cf is None else torch.log(cf / cf.sum()) # cls yolo.py 수정 2021. 7. 6. 이전 1 다음