Karan Singh

Results 10 comments of Karan Singh

Hey @OPHoperHPO @senya-ashukha , First of all thanks for this conversion, I was trying the ONNX model, and it seems like it differs from the original model and doesn't perform...

Thanks for the clarification @OPHoperHPO, I used the same preprocessing/postprocessing functions as provided in your conversion [notebook ](https://colab.research.google.com/github/Carve-Photos/lama/blob/main/export_LaMa_to_onnx.ipynb#scrollTo=AEcIuUpleXuZ) for the onnx inference, as for the pytorch inference, I followed [Sanster's](https://github.com/Sanster)...

@OPHoperHPO, I have created an isolated [notebook](https://colab.research.google.com/drive/19uZvT8HnTfXlk_lSAWUhJA9WJ2I6JXPc?usp=sharing) and removed all the external factors(courtesy [here](https://github.com/Sanster/IOPaint/blob/main/iopaint/model/lama.py)). I also tried replacing just the inference part via onnx and keeping the same preprocessing logic...

@OPHoperHPO Haah, thanks catching my little blunder ;-; The onnx model is indeed giving similar outputs 🙌 Big big thanks for your help!

@ljdang fp16 doesn't seem to have any visible losses, is your conversion correct?

any update on this, after the PowerPaint_v2 some conversion guidelines would be really useful

Seems like it stopped at: Start to Optimize the MNN Net... ![Screenshot 2024-09-01 at 11 53 35 AM_cleanup](https://github.com/user-attachments/assets/922c12eb-86ee-423c-867f-d86a554c5c30) This didn't throw any error, also the ONNX model runs properly.

@k-khosravi can you provide the code you used for onnx conversion?

@jxt1234 we would love to chat about this and make [mnn-rs](https://github.com/aftershootco/mnn-rs) more usable, among the rust community!