microsoft / aerial_wildlife_detection

Tools for detecting wildlife in aerial images using active learning
MIT License
230 stars 58 forks source link

Images can't be viewed after uploading #27

Closed YangZhangMizzou closed 3 years ago

YangZhangMizzou commented 3 years ago

Hello All:

I have some problems when I try to view and label the images I uploaded. Anyone have some suggestions for this? Thank you! Screenshot from 2021-01-21 13-37-26

YangZhangMizzou commented 3 years ago

I uploaded jpg images, size is 512 * 512.

bkellenb commented 3 years ago

Hello!

Sometimes this happens because the Web frontend tries to prematurely request the images from the FileServer. However, they should still get uploaded. Can you confirm whether they appear in the image browser when you click the "Data management" tab?

If not, I will try to replicate the scenario to find the culprit. For this I'd need to know the following:

  1. Are you running AIDE through Docker?
  2. Are all services located on one machine, or is the FileServer being handled by another one?
YangZhangMizzou commented 3 years ago

Hello!

Sometimes this happens because the Web frontend tries to prematurely request the images from the FileServer. However, they should still get uploaded. Can you confirm whether they appear in the image browser when you click the "Data management" tab?

If not, I will try to replicate the scenario to find the culprit. For this I'd need to know the following:

  1. Are you running AIDE through Docker?
  2. Are all services located on one machine, or is the FileServer being handled by another one?

Thank you for your reply! Yes they are in data management but still can not be viewed. For your questions:1.Yes, I run gpu mode through docker 2. yes, all process on one same machine.

bkellenb commented 3 years ago

Oh, my bad. I remember this bug and had actually fixed it a while ago in the latest branch. This will soon be the new master, with plenty new features and other bugs resolved.

However, I just also resolved that issue in the current master branch; if you pull the latest changes and reload the page the images should display fine. Can you confirm?

YangZhangMizzou commented 3 years ago

Oh, my bad. I remember this bug and had actually fixed it a while ago in the latest branch. This will soon be the new master, with plenty new features and other bugs resolved.

However, I just also resolved that issue in the current master branch; if you pull the latest changes and reload the page the images should display fine. Can you confirm?

Yes! Thank you for your help!

bkellenb commented 3 years ago

Thanks a lot! I'm closing this for now then.

YangZhangMizzou commented 3 years ago

Thanks a lot! I'm closing this for now then.

I am sorry but this problem has not been solved. After I pull your update I still can not view my images, when I click the hyperlink to images in server, I got the page like that showing this image does not exist. Same error still occur when I try it in aide-detectron2. Screenshot from 2021-01-21 15-24-59 Do you have some comments? Thank you!

YangZhangMizzou commented 3 years ago

Here is my setting.ini file. I only change values in [project]. should I do more? settings.txt

bkellenb commented 3 years ago

Hello,

You are absolutely right with the settings file! The docker/settings.ini file contained an outdated default value for parameter dataServer_uri. Thank you very much for pointing this out!

If your FileServer is running on the same machine as your web frontend, then this parameter should be left empty (or with a forward slash /). Only if your FileServer is running on an external machine should it be filled in (then with that machine's base URL). This explains why /files/ appeared twice in the suggested URL (as per your screenshot). So, if you are running all services on one machine, your settings.ini file should have the following entry:

[Server]
dataServer_uri =

I have now fixed this default value and also resolved other issues I found due to missing DB schema updates. Please pull the latest changes (both master and aide_detectron2 branches have been updated) and verify the entries in the settings.ini file.

YangZhangMizzou commented 3 years ago

Hello,

You are absolutely right with the settings file! The docker/settings.ini file contained an outdated default value for parameter dataServer_uri. Thank you very much for pointing this out!

If your FileServer is running on the same machine as your web frontend, then this parameter should be left empty (or with a forward slash /). Only if your FileServer is running on an external machine should it be filled in (then with that machine's base URL). This explains why /files/ appeared twice in the suggested URL (as per your screenshot). So, if you are running all services on one machine, your settings.ini file should have the following entry:

[Server]
dataServer_uri =

I have now fixed this default value and also resolved other issues I found due to missing DB schema updates. Please pull the latest changes (both master and aide_detectron2 branches have been updated) and verify the entries in the settings.ini file.

Yes, it worked now. Thank you for your help!