Giter Site home page Giter Site logo

Comments (18)

tianweiy avatar tianweiy commented on August 27, 2024 1

Though you should be able to use tensorboard if you want. There is a tensorboard logger hook in det3d/torchie/trainer/hooks/logger/tensorboard.py. You need to adapt this file according to det3d/torchie/trainer/hooks/logger/text.py and change the config files.

from centerpoint.

ChidanandKumarKS avatar ChidanandKumarKS commented on August 27, 2024 1

loss_analysis.txt
Attaching the code to visulaize loss values over a sequence of time.
@YazanMurhij995 , @tianweiy
Hope this solves analyzing loss visualization issues

from centerpoint.

tianweiy avatar tianweiy commented on August 27, 2024

No, it is not used.

from centerpoint.

tianweiy avatar tianweiy commented on August 27, 2024

I just use the raw log to see the changes of the loss

from centerpoint.

chowkamlee81 avatar chowkamlee81 commented on August 27, 2024

Thanks Ok

from centerpoint.

YznMur avatar YznMur commented on August 27, 2024

I want to view the model as a graph in tensorboard using this command:
writer = SummaryWriter()
writer.add_graph(model, input)
where I should insert this command ?

from centerpoint.

tianweiy avatar tianweiy commented on August 27, 2024

Hi, currently we can't use tensorboard to view the model as the input / output doesn't follow the predefined format (e.g. iterable). You can view the module through print. I remember @muzi2045 gets some graph visualization and it will be great if you(@muzi2045 ) can explain some simple way to do this.

from centerpoint.

chowkamlee81 avatar chowkamlee81 commented on August 27, 2024

@YazanMurhij995
Kindly use onnx. Convert pytorch model to onnx format. You can easily visualize onnx file because already software s are there to view onnx files

from centerpoint.

YznMur avatar YznMur commented on August 27, 2024

I tried but I am facing the same problem. it is not clear how to specify an input to the model! Can you give an example of the input please.
It is something like Dict(voxels, num_points, num_voxels, coords, [grid_size])

from centerpoint.

YznMur avatar YznMur commented on August 27, 2024

@chowkamlee81 , Have you managed to convert the model to onnx? it seems that the input format is not supported. Either the dict or np.ndarray should be changed.
Can you tell me, please?

from centerpoint.

Qjizhi avatar Qjizhi commented on August 27, 2024

@chowkamlee81 , Have you managed to convert the model to onnx? it seems that the input format is not supported. Either the dict or np.ndarray should be changed.
Can you tell me, please?

@YazanMurhij995 Do you have any idea yet?

from centerpoint.

YoushaaMurhij avatar YoushaaMurhij commented on August 27, 2024

@Qjizhi you can try to export some parts of the model (i,e neck or head) only! as the Dict format is not supported yet

from centerpoint.

Qjizhi avatar Qjizhi commented on August 27, 2024

@Qjizhi you can try to export some parts of the model (i,e neck or head) only! as the Dict format is not supported yet

Hi @YoushaaMurhij, thanks for your reply, could you please share some open-sourced code?

from centerpoint.

YoushaaMurhij avatar YoushaaMurhij commented on August 27, 2024

Here are some instructions:
https://pytorch.org/docs/stable/onnx.html
you can apply it here (for example)

from centerpoint.

xavidzo avatar xavidzo commented on August 27, 2024

@Qjizhi you can try to export some parts of the model (i,e neck or head) only! as the Dict format is not supported yet

@YoushaaMurhij but if you change the inputs of the forward method of the reader, neck, and backbone to be lists instead of dictionaries, then the model could be exported as a whole easily to onnx? Can you answer please

from centerpoint.

YoushaaMurhij avatar YoushaaMurhij commented on August 27, 2024

@xavidzo Yes, It should be converted easily without problems. I didn't try that!

from centerpoint.

xavidzo avatar xavidzo commented on August 27, 2024

@xavidzo Yes, It should be converted easily without problems. I didn't try that!

Ok, thank you @YoushaaMurhij but if the output of the model, i.e. the output of the head is also a dictionary, would this work for onnx or should I also change the output to be a list as well?

I was also looking at the code of another repository where pointpillars was exported separately in two parts, the pfe and rpn.... but they did not export the PointPillarsScatter operation, they used for inference the PyTorch implementation of PointPillarsScatter without converting it... do you have maybe an idea why they did it this way? PointPillarsScatter should not be exported to onnx for some reason?
https://github.com/SmallMunich/nutonomy_pointpillars/blob/68d3181d35702608d410e948608e9815815677b9/second/pytorch/tensorrt_onnx_infer.py#L63

from centerpoint.

YoushaaMurhij avatar YoushaaMurhij commented on August 27, 2024

I think it should work for the head, too. The problem with be only with the input part here.

from centerpoint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.