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

[HELP!] Loading image error #110

Open
ALgarth opened this issue Sep 28, 2024 · 7 comments
Open

[HELP!] Loading image error #110

ALgarth opened this issue Sep 28, 2024 · 7 comments

Comments

@ALgarth
Copy link

ALgarth commented Sep 28, 2024

I'm trying tu run the code in the Readme segment 5 traning "python training/train.py \ --detector_path ./training/config/detector/xception.yaml". But here comes the loading image error. I think maybe I set the wrong direction to the data set but I don't know which.
QQ截图20240928165508
QQ截图20240928165549
QQ截图20240928165721
QQ截图20240928165704

@dummerchen
Copy link

This error message is not comprehensive; the most likely issue is that you forget to modify the paths in the data JSON file. I sincerely hope you can resolve your problem and if you have time, it would be great to verify the test results as well as #109.

@ALgarth
Copy link
Author

ALgarth commented Oct 1, 2024

This error message is not comprehensive; the most likely issue is that you forget to modify the paths in the data JSON file. I sincerely hope you can resolve your problem and if you have time, it would be great to verify the test results as well as #109.

Thanks for your reply. I have modified the path in 3 yaml files named "test_config","train_config" and "xception", but the error is still there. According to the traceback, I checked the file "trainer.py" to see if the path used in this file was wrong, but the outcome shows the path was correct. I can't figure out why there's still a image loading error. I wonder if there's a specific yaml file I haven't change?

What I have done is as follows:

  1. finished the process 1,2,4 in the readme
  2. change paths in 3 files named "train_config.yaml","test_config.yaml" and "xception.yaml".
  3. run the code given in the process 5

The full error message is given below. I will try to run the code in another server later.

QQ截图20241001170828
QQ截图20241001170350
QQ截图20241001170402

@dummerchen
Copy link

I guess the issue lies with the load_rgb function in the abstract dataset. You need to modify this part of the code based on your specific situation.

@ALgarth
Copy link
Author

ALgarth commented Oct 1, 2024

I guess the issue lies with the load_rgb function in the abstract dataset. You need to modify this part of the code based on your specific situation.

So weird, I use a print function in the function you've mentioned to see if the path file was wrong. The outcome shows the path is right 🤔. I'll try to run the code in another server later, hope I can't get the same error.

QQ截图20241001173453
QQ截图20241001173513

@dummerchen
Copy link

This problem is obvious, because you set self.lmdb to true and need to read in lmdb format, but from the path you pass in a png file, check the output of img. You may be set self.lmdb to false.

@ALgarth
Copy link
Author

ALgarth commented Oct 1, 2024

This problem is obvious, because you set self.lmdb to true and need to read in lmdb format, but from the path you pass in a png file, check the output of img. You may be set self.lmdb to false.

Thanks a lot for your help!!! It's running nomally. I'll continue to get the result and verify the test results as well as #109
QQ截图20241001181322

@dummerchen
Copy link

I was wondering if you've been able to replicate the results from the paper. I‘am looking forward to your reply.

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

2 participants