Replies: 3 comments 9 replies
-
Should we set Thanks. |
Beta Was this translation helpful? Give feedback.
-
Even setting use_conv as False yields the same result |
Beta Was this translation helpful? Give feedback.
-
yes, it's not possible to make a single config that suits all popular torchvision models, as there are some inconsistencies in the model variable names and arrangements. for the inceptionv3, here are the test cases for your references: {
"model_name": "inception_v3",
"num_classes": 5,
"use_conv": True,
"pool": "",
"in_channels": 2048,
"node_name": "Mixed_7c.cat_2",
},
(2, 3, 299, 299),
(2, 5, 8, 8), there are some other use cases in the test file https://github.com/Project-MONAI/MONAI/blob/dev/tests/test_torchvision_fc_model.py#L29 |
Beta Was this translation helpful? Give feedback.
-
Hello,
I think there is some issue with how the error checking happens in the model zoo parser. Please see attached the json script I created.after my discussions with @Nic-Ma and @yiheng-wang-nv. I tested the script and it works great when used with Densenet without any issues. However when used with
TorchvisionFCModel
after @wyli integrated inception_v3 in the latest monai TorchvisionCode. I am using it as followsI get the following error:
I checked the shaped of the input data and I can assure its [4, 3, 299, 299] where 4 is the batch size. I do not understand why it is using an input size of [4, 1000]. I also tried the following
and I get the same error
Any thoughts ?
train.txt
Beta Was this translation helpful? Give feedback.
All reactions