-
Notifications
You must be signed in to change notification settings - Fork 5.5k
How to visualize the network structure #320
Comments
The following is a code snippet to visualize:
Then you can use a dot viewer (e.g. xdot) to visualize. |
Thank you taoari ! i think the original caffe2 don't register the AffinaChannel op,which is belonged to the detectron. |
@JiYuanFeng You will need the imports in https://github.com/facebookresearch/Detectron/blob/master/tools/infer_simple.py |
@taoari Thank you for your help! |
@taoari @JiYuanFeng Maybe you could do a pull request with your script so everyone could benefit from it? :) |
@gadcam i will do it ~ |
nice |
@PacteraOliver @taoari I tried GetPydotGraph and GetPydotGraphMinimal, but it hangs too long like this. |
@WuZhuoran I tried your pull request, and it works well. One question: the visualization is for model definition, why we must provide a weights_file? Can we get rid of it? Your code could draw an inference net. However, my problem is that I want to visualize the training net of Detectron/detectron/utils/train.py Lines 164 to 169 in dc76799
g = net_drawer.GetPydotGraph(model.net, rankdir='TB')
g.write('train_net.dot') I also tried |
I think maybe this is because there are too many |
I tried to use the same process to get visualize the network but I am getting the following error? Anyone knows how to resolve that? Traceback (most recent call last): |
@tonbing Looks like |
I use anaconda with python2.7.
|
By the way, I installed
|
And the result can be like this:
The url listed above doesn't support firefox |
Hi, Is there any easy way to visualize the network? like Netscope for caffe?
I can use the net_drawer in caffe2, but found it;' so hard to read the network?
The text was updated successfully, but these errors were encountered: