-
Notifications
You must be signed in to change notification settings - Fork 467
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
Why the coco-annotator I installed doesn't have delete option? #615
Comments
solved now? |
Did you had a look at your Web Navigator javascript console ? |
If you see continuous errors about socketio connections and disconnections, then the backend (or maybe another component) is probably down. Look at docker-compose logs in terminal. You may have a python error in annotator_webserver container. When everything is running, you should see something like that with "docker ps -a" command :
If your annotator_webserver container is down, you can try to run it in a separated terminal using this command : If this container crash again, it should be easier to find python errors |
why your images list are different from the Docker-compose.yaml required? For example: in the yaml, it's jsbroks/coco-annotator: workers-stable, but yours is coco-annotator_work_workers. And you didn't install the python-env image, which is mentioned in the Docker-compose.yml. |
My docker images are different from docker-compose.yml, since I was running in dev mode using this command line "docker-compose -f ./docker-compose.dev.yml up". And since I have totally rewritten coco-annotator sources, things on my computer may not be exactly the same as with official sources. The important thing is when using "docker ps -a" command, you should see the 5 containers UP (mongo db, rabbit mqtt, backend, frontend and worker). If one of this containers is down then you have a problem. HTTP 401 error is not a problem if it appear before login/password otherwise you have a weird authentication/authorization problem. I tried to run from official coco-annotator images, also tried to stop backend to simulate a crash, but I can't reproduce your problems. Do you connect on localhost to the application or remotely ? |
you said 5 containers, but the Docker-compose.yml only mentioned 4 container, the relating images are:rabbitmq:3, mongo:4.0, jsbroks/coco-annotator:webserver-stable, jsbroks/coco-annotator:workers-stable. Does I have to use "docker-compose -f ./docker-compose.dev.yml up"? By the way, I connect to the sever remotely, I typed the "10.174.97.200:5000/" the browser of the jump server. "10.174.97.200" is the IP of my Ubuntu server, I installed the docker and docker-compose here. I don't know if I have added nginx or apache server in front of the application. How could I confirm this matter? |
Ok, sorry, my bad. Can you try to connect locally directly on the server connecting to http://localhost:5000 instead ? |
If I connecting to http://localhost:5000/, it will mean that I need to install a chrome browser in the ubuntu server. But the ubuntu |
OK, I think I've found what's wrong. In your case, without intenet on your server you can proceed like this:
download on another computer the file https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css Identify your container:
Extract index.html file :
edit index.html and replace https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css by /css/font-awesome.min.css Inject css file and modified index.html file in docker container:
commit new image: then you can close and delete the container you mounted: restart coco-annotator with docker-compose and it should be ok then. (note, I don't have tested the procedure, so you may have to adapt some parts...) |
I tried as your way. But it didn't have any change. I think this may because of these reasons:
|
Let me add someting: |
Ok docker commit with option -t does not exists (-t is not necessary in fact) Now you have to understand why annotator_webclient always exit with code 0 ? (code 0 usually mean end with no error ...) Downloading font-awesome with a tool like curl or wget is probably preferable to avoid any eventual Browser modifications. Also verify in container that font-awesome and modifications of index.html are present (you can do a "docker exec -it container_id bash" to enter the running container. In your web browser you can also have a look at Debug tab to see files used/opened. |
I'm sorry but, I tried to download the font-awesome.min.css by using a tool, copied it to webserver image and committed again. But when I tried to open the "http://10.174.97.217:5000/" on my browser, the website can't open. |
I followed the instructions I gave you and I have the same behavior than you. |
OK, fixed, and tested this time :) My procedure was nearly good, but you have to work on container mounted by docker-compose. OK now, 2 ways to save the situation.
then: now run server: find container id using: download all font-awesome files(I added fonts to not have weird chars instead of + button):
extract index.html edit index.html and replace https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css by /css/font-awesome.min.css copy files to container
Note you can already verify modifications refreshing your browser here. commit container
Now restart docker-compose and it should be OK (at least ! :) ) |
I did as you asked, the website didn't flash back. But it still didn't have the button, which is my original problem. It seems that this method didn't work. |
No, It should be ok now. start application with docker-compose up You should have this content:
and index.html should be like this (I had to use an html pretty formatter to make this file readable in github):
If everything is ok and you still have the problem, |
You need to click on "Label" to change default name, else Label is considered empty and keypoint is not saved. Red message is encapsulated in tag. Annotating image seem's OK, maybe you mean you can't do any annotations ? |
I installed manually the coco-annotator in the Ubuntu server of my company. Because it can't connect to external network(including docker website), so I need to install docker(v20.10.7), docker compose(v2.22.0), and the images(required in docker-compose.yml) manually. But when I type docker-compose up, the website has some error. I can't delete the dataset or the categories I created. And I can't set the key point class when I tried to create a pose category. How can I fix it?
1.when I was creating pose category, it showed like this:
But the expected result should be like this:
That is to say, there is no "+" button at the right corner of the 'keypoint' label.
2.when I want to delete categories or datasets,it showed like this:
But the expected result should be like this:
That is to say, there is no "..." button at the right corner of every categories label, which has the delete option in it.
The text was updated successfully, but these errors were encountered: