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

Images can't be viewed after uploading #27

Closed
YangZhangMizzou opened this issue Jan 21, 2021 · 10 comments
Closed

Images can't be viewed after uploading #27

YangZhangMizzou opened this issue Jan 21, 2021 · 10 comments

Comments

@YangZhangMizzou
Copy link

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
Copy link
Author

I uploaded jpg images, size is 512 * 512.

@bkellenb
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

bkellenb commented Jan 21, 2021

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
Copy link
Author

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
Copy link
Collaborator

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

@YangZhangMizzou
Copy link
Author

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
Copy link
Author

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

@bkellenb
Copy link
Collaborator

bkellenb commented Jan 22, 2021

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.

@bkellenb bkellenb reopened this Jan 22, 2021
@YangZhangMizzou
Copy link
Author

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!

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