Open berkakyildizz opened 7 months ago
same question. It keeps running when I don't care about it.
I have same problem. I just ignored it.
Do you solve the problem?
Well, actually, I just ignored it. The reason is I found out that is not the problem for yolov9, it is the old problem from yolov5. And it might figure out by ultralistics, in my memory, in the new version of yolov5.
Thanks!
有人解决了问题吗
I have same problem. I just ignored it.
I can ask , there's no problem when ignore it ?
I have same problem. I just ignored it.
I can ask , there's no problem when ignore it ?
No problem
忽略之后没办法加载计算图该怎么办
忽略之后没办法加载计算图该怎么办
I don't have this problem.
忽略后用tensoboard 做过程监控时看不到graph,你们有这个情况吗
有这个问题,但是可以正常训练
有这个问题,但是可以正常训练
有没有办法解决掉这个警告,然后加载出graph呢
忽略之后没办法加载计算图该怎么办
I don't have this problem.
Can you load the computation graph correctly?
You can tweak the utils.loggers.log_tensorboard_graph
with the following code to display properly the arch:
def log_tensorboard_graph(tb, model, imgsz=(640, 640)):
# Log model graph to TensorBoard
try:
p = next(model.parameters()) # for device, type
imgsz = (imgsz, imgsz) if isinstance(imgsz, int) else imgsz # expand
im = torch.zeros((1, 3, *imgsz), device=p.device, dtype=p.dtype) # input image (WARNING: must be zeros, not empty)
model = deepcopy(de_parallel(model))
model.eval()
model = model.fuse()
for m in model.modules():
if hasattr(m, "export"):
m.export = True
m.format = "torchscript"
model(im) # dry run
tb.add_graph(torch.jit.trace(model, im, strict=False), [])
LOGGER.info(f"Model graph visualization added ✅")
except Exception as e:
LOGGER.warning(f'WARNING ⚠️ TensorBoard graph visualization failure {e}')
Inspired by ultralytics ultralytics.utils.callbacks.tensorboard._log_tensorboard_graph
:
You can tweak the
utils.loggers.log_tensorboard_graph
with the following code to display properly the arch:def log_tensorboard_graph(tb, model, imgsz=(640, 640)): # Log model graph to TensorBoard try: p = next(model.parameters()) # for device, type imgsz = (imgsz, imgsz) if isinstance(imgsz, int) else imgsz # expand im = torch.zeros((1, 3, *imgsz), device=p.device, dtype=p.dtype) # input image (WARNING: must be zeros, not empty) model = deepcopy(de_parallel(model)) model.eval() model = model.fuse() for m in model.modules(): if hasattr(m, "export"): m.export = True m.format = "torchscript" model(im) # dry run tb.add_graph(torch.jit.trace(model, im, strict=False), []) LOGGER.info(f"Model graph visualization added ✅") except Exception as e: LOGGER.warning(f'WARNING ⚠️ TensorBoard graph visualization failure {e}')
Inspired by ultralytics
ultralytics.utils.callbacks.tensorboard._log_tensorboard_graph
:
Thanks for your code. The code is successfully run.
You can tweak the
utils.loggers.log_tensorboard_graph
with the following code to display properly the arch:def log_tensorboard_graph(tb, model, imgsz=(640, 640)): # Log model graph to TensorBoard try: p = next(model.parameters()) # for device, type imgsz = (imgsz, imgsz) if isinstance(imgsz, int) else imgsz # expand im = torch.zeros((1, 3, *imgsz), device=p.device, dtype=p.dtype) # input image (WARNING: must be zeros, not empty) model = deepcopy(de_parallel(model)) model.eval() model = model.fuse() for m in model.modules(): if hasattr(m, "export"): m.export = True m.format = "torchscript" model(im) # dry run tb.add_graph(torch.jit.trace(model, im, strict=False), []) LOGGER.info(f"Model graph visualization added ✅") except Exception as e: LOGGER.warning(f'WARNING ⚠️ TensorBoard graph visualization failure {e}')
Inspired by ultralytics
ultralytics.utils.callbacks.tensorboard._log_tensorboard_graph
:
Thank you very much for your high-quality reply. It has been loaded successfully.
Starting training for 50 epochs...
output from traced functions 0/49 18.5G 1.634 2.721 1.957 41 640: 29%|██▉ | 38/130 19:30
'WARNING TensorBoard graph visualization failure Only tensors, lists, tuples of tensors, or dictionary of tensors can be'
What is this Warning, I don't understand what I need to do to solve this, can you help me?