yangchengtest
yangchengtest
PD方法理解错了。 可以了,多谢。
内存是NCHW排布的,可以通过CHANNEL()拿到CHANNEL的地址,避免内存空间不连续的坑。
@Lornatang here is my initial code: segmentation_module.cuda(device = torch.device('cuda:{}'.format(gpus[0]))) # load nets into gpu new_model, optimizers = amp.initialize(segmentation_module, list(optimizers), opt_level="O1") optimizers = tuple(optimizers) segmentation_module = new_model then run the train...
@Lornatang amp.initialize(segmentation_module, list(optimizers), opt_level="O1") init the optimizers at the same time. Here is the print: Selected optimization level O1: Insert automatic casts around Pytorch functions and Tensor methods. Defaults for...
@Lornatang CV semantic segmentation 2 models combined,only one loss... I will try to use only one optimizer. My forward func: self.encoder here is one model. self.decoder here is another model....
@Lornatang gcc version 4.8.5 20150623 (Red Hat 4.8.5-39)
@Lornatang reinstalled. The same error. When I compile apex. There is a warning: /usr/local/lib/python3.6/site-packages/torch/include/c10/core/TensorTypeSet.h(44): warning: integer conversion resulted in a change of sign
@Lornatang The same error. here is a warning: Your compiler (g++ 4.8.5) may be ABI-incompatible with PyTorch! Please use a compiler that is ABI-compatible with GCC 4.9 and above. See...
Thanks. Update the gcc version to 7.5.0 fix the problom.Thanks!~
yolo.py return_value, frame = vid.read() if not return_value: break