Open sadegh16 opened 3 years ago
Could anyone please guide me here after updating the code?
Hi there, thank you for your feedback! Can you provide the detailed tracer warning? Also, could you try exporting the int8 model.jit with https://github.com/facebookresearch/d2go/tree/master/demo and test the model.jit and wrapper again?
@XiaoliangDai
I got new errors during loading model on Android.
This step is even before feeding the model with an image which was possible before.
@XiaoliangDai
By using this and setting all datasets in (annotations in the defined directory) I get:
could you help me? even the sample int8 quantization in the above link gives warnings like that.
@sadegh16 Hi is it still an issue? Seems the latest error message is related to data loading (maybe the dataset is not installed correctly), to debug could you disable error handling by appending D2GO_DATA.MAPPER.CATCH_EXCEPTION False
to the command?
getting the same error , any luck @wat3rBro @sadegh16 ?
Hello all
Could anyone ever export torchscript file for keypoint_rcnn_fbnetv3a_dsmask_C4 pre-trained model using create_d2go.py file? I altered the Wrapper to return "keypoints" beside others ("boxes","scores","labels"). "Keypoints" are in the out[3] in Wrapper. res["scores"] = out[2]
Here is the code I use to export the model is: `
!/usr/bin/env python3
` when I use exported .pt file in android I get corrupted keypoints coordinates and it seems it's due to the TracerWarnings meanwhile I export torchscript file ( Converting a tensor to other python types cause the value to be constant in the torchscript output file)
I am pretty sure the input format of the forwarding path in android is correct. The output of the model in android for keypoint_rcnn_fbnetv3a_dsmask_C4 model is "boxes","scores","labels","keypoints". but "keypoints" are not correct. others are fine and I can draw boxes around "persons".
my meaning of corrupted keypoints : for each keypoint the model in android returns the same (x,y,probability) ## Expected behavior: get the same output as the time I run the model in python3 with DemoPredicator.