-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
script to test on single image [Trufor Model] Not working #47
Comments
Thanks for your attention to our work. Firstly I have an question that is the visualization in Tensorboard is correct or not? This is a key to verify the bug comes from the training stage or the saving-loading stage. |
I trained the model on an Azure GPU server, but I don't have access to TensorBoard since all the ports are blocked. I've attached the log file—please let me know if it works. Also, could you explain the functionality of the pred_label (which we receive in the model output along with pred_mask)? Lastly, could you please review my test script to check if it's coded correctly, so I can use it to test on other pre-trained models like MVSS-Net, CAT-Net, etc.? |
Hi,kshitij005. You can download the tensorboard files and visualize them on your computer. In your log, the F1 score doesn’t seem to improve with training. You can try training a few more times and monitor the reason for the lack of improvement. In your test script, it seems like you haven’t used ImageNet’s normalization for image processing. I’m not sure if this is the cause of the issue, but you can try improving that and then debug further. |
I am currently testing this script using pre-trained weights. When I used the older script from the [IML-ViT repo], which includes the TruFor weights[iml-vit_checkpoint_trufor_20231104.pth] you provided, I achieved very good results with those pre-trained weights. However, when I run the updated script [above script which I have made for testing] with the added normalization, as you suggested, I am getting the same distorted results I shared earlier.
Could you explain why there is such a discrepancy? Is there something wrong with my test script? |
Do you mean you run IML-VIT check point with the image loading process above? Since IML-ViT requires an image with resolution of 1024x1024 as input. This may not fit the desire input. |
I used your demo.ipynb to run those weights, utilizing the test_image function with a 1024x1024 resolution input image. However, running the normal pretrained weights on a single image is functioning as expected (In the older vesrion IML-Vit Repo), whereas the newer version [ IMDLBenCo Repo] does not works correctly/ gives improper masked output. Could this issue stem from a problem in my script or another factor? |
So do you have social media like whatsapp or wechat so we can discuss this properly? |
I have written below script to test on single image
Code Block
In Above code I am not getting the proper masked output image though my training done properly,
I have checked the results without checkpoint, that too is not giving proper results.
The output image from the test is not satisfactory. Could you please help me identify if there is an issue with the code? Additionally, we receive a pred_label in the output—how can I use this to determine whether the image has been tampered with?
I am new to this field, so please bear with me if I am missing something.
The text was updated successfully, but these errors were encountered: