compat.PyTorch2RiverClassifier problem #990
-
Hi! I am struggling with compat.PyTorch2RiverClassifier, (A river classifier that integrates neural Networks from PyTorch) could anyone help me please? class definition def build_classifier(n_features): pytorch to river conversion image inference Image is my tensor (3d image) but i dont know how to give it to the predict_proba_one function. I can read in docs that it must be a dict() but how? Should i flatten the 3d tensor? Where shoud i instance the model? (model=Resnet18_model())? Any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Could you check out river-torch? We're going to deprecate the PyTorch stuff in the compat module. |
Beta Was this translation helpful? Give feedback.
Could you check out river-torch? We're going to deprecate the PyTorch stuff in the compat module.