Skip to content
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

Inference on single image\folder #2

Open
iariav opened this issue Oct 19, 2022 · 8 comments
Open

Inference on single image\folder #2

iariav opened this issue Oct 19, 2022 · 8 comments

Comments

@iariav
Copy link

iariav commented Oct 19, 2022

Hi,
thanks for the great work.
I want to test some of the pre-trained models on my own data.
is there some simple way to run a pre-trained model on a folder of images? or on a single image?
thanks

@Harsh188
Copy link
Contributor

Harsh188 commented May 9, 2024

This would be quite useful.

@shreyaskamathkm
Copy link
Owner

Currently we are in the process of updating the repo with the latest packages. We should have this functionality soon.

@Harsh188
Copy link
Contributor

Is there a quick solution to running inference using fine-tuned ckpt? I want to visualize results on thermal data that I've captured.

@shreyaskamathkm
Copy link
Owner

I have something on the 'develop' branch. But it's work in progress. Should be able to publish it once I refactor it.

@shreyaskamathkm
Copy link
Owner

shreyaskamathkm commented Jun 30, 2024

The develop branch has been updated to support inferring on a folder of images. Please use that branch and follow the instructions. Please ensure you have the downloaded rev-2 models from the box. The old model checkpoints will not work.

@kulkarnikeerti
Copy link

@shreyaskamathkm I am using develop branch to infer a set of images. But, I also wanted to try training with the same branch as I have lot issues with the main branch due to a lot of packages incompatibilities. I ran the mentioned command python -m ftnet -c ./ftnet/cfg/train_soda.toml for the training and it runs just for one epoch although the mentioned number of epochs is 100. I tried to debug and find out if somewhere in the code 1 was passed in epochs but I could not find. Could you please help me if that actually is the case in this branch?

Thanks in advance

@shreyaskamathkm
Copy link
Owner

@kulkarnikeerti Yes, I think I forgot to set debug = False in the config file. Can you try setting debug=False and rerun that?

When debug is True, the setup makes sure to enable fast_dev which is a PyTorch Lightning flag to check if everything is working and run for 1 epoch

@kulkarnikeerti
Copy link

Yes, that works. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants