facebookresearch / AnimatedDrawings

Code to accompany "A Method for Animating Children's Drawings of the Human Figure"
MIT License
10.31k stars 885 forks source link

call the server in docker,raise error.Then the server turn to unhealthy,the memory is 16GB #271

Closed SEVENBAY closed 3 months ago

SEVENBAY commented 4 months ago

image

2024-03-04 17:56:14 java.lang.InterruptedException: null 2024-03-04 17:56:14 at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1081) ~[?:?] 2024-03-04 17:56:14 at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1369) ~[?:?] 2024-03-04 17:56:14 at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:278) ~[?:?] 2024-03-04 17:56:14 at org.pytorch.serve.wlm.WorkerThread.connect(WorkerThread.java:424) ~[model-server.jar:?] 2024-03-04 17:56:14 at org.pytorch.serve.wlm.WorkerThread.run(WorkerThread.java:191) [model-server.jar:?] 2024-03-04 17:56:14 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] 2024-03-04 17:56:14 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] 2024-03-04 17:56:14 at java.lang.Thread.run(Thread.java:829) [?:?] 2024-03-04 17:56:14 2024-03-04T09:56:14,254 [DEBUG] W-9003-drawn_humanoid_detector_1.0 org.pytorch.serve.wlm.WorkerThread - W-9003-drawn_humanoid_detector_1.0 State change WORKER_STARTED -> WORKER_STOPPED 2024-03-04 17:56:14 2024-03-04T09:56:14,255 [WARN ] W-9003-drawn_humanoid_detector_1.0 org.pytorch.serve.wlm.WorkerThread - Auto recovery failed again 2024-03-04 17:56:14 2024-03-04T09:56:14,256 [WARN ] W-9003-drawn_humanoid_detector_1.0 org.pytorch.serve.wlm.WorkerLifeCycle - terminateIOStreams() threadName=W-9003-drawn_humanoid_detector_1.0-stderr 2024-03-04 17:56:14 2024-03-04T09:56:14,256 [WARN ] W-9003-drawn_humanoid_detector_1.0 org.pytorch.serve.wlm.WorkerLifeCycle - terminateIOStreams() threadName=W-9003-drawn_humanoid_detector_1.0-stdout 2024-03-04 17:56:14 2024-03-04T09:56:14,266 [INFO ] W-9003-drawn_humanoid_detector_1.0-stdout org.pytorch.serve.wlm.WorkerLifeCycle - Stopped Scanner - W-9003-drawn_humanoid_detector_1.0-stdout 2024-03-04 17:56:14 2024-03-04T09:56:14,266 [INFO ] W-9003-drawn_humanoid_detector_1.0-stderr org.pytorch.serve.wlm.WorkerLifeCycle - Stopped Scanner - W-9003-drawn_humanoid_detector_1.0-stderr 2024-03-04 17:56:14 2024-03-04T09:56:14,267 [ERROR] epollEventLoopGroup-5-4 org.pytorch.serve.wlm.WorkerThread - Unknown exception 2024-03-04 17:56:14 io.netty.channel.unix.Errors$NativeIoException: readAddress(..) failed: Connection reset by peer image

SunshineList commented 3 months ago

I have also encountered the same problem. Have you solved it?

SunshineList commented 3 months ago

I just solved this problem. Please check if there are any Python errors on the project when it starts running, and then try to solve this error. In the end, I lowered the version of Torch. Pay attention to Torchvision. I first lowered Torch=2.0.1, and then the Torchvision and Torch versions were incorrect. I also lowered Torchvision to 0.15.1, which will automatically install Torch=2.0.0. This will solve my problem

SEVENBAY commented 3 months ago

I just solved this problem. Please check if there are any Python errors on the project when it starts running, and then try to solve this error. In the end, I lowered the version of Torch. Pay attention to Torchvision. I first lowered Torch=2.0.1, and then the Torchvision and Torch versions were incorrect. I also lowered Torchvision to 0.15.1, which will automatically install Torch=2.0.0. This will solve my problem

I deployed based on Docker Desktop in Windows 11. Will there be any environmental issues? What platform are you running the project on?

SunshineList commented 3 months ago

I just solved this problem. Please check if there are any Python errors on the project when it starts running, and then try to solve this error. In the end, I lowered the version of Torch. Pay attention to Torchvision. I first lowered Torch=2.0.1, and then the Torchvision and Torch versions were incorrect. I also lowered Torchvision to 0.15.1, which will automatically install Torch=2.0.0. This will solve my problem

I deployed based on Docker Desktop in Windows 11. Will there be any environmental issues? What platform are you running the project on?

I am also docker desktop

SunshineList commented 3 months ago

I just solved this problem. Please check if there are any Python errors on the project when it starts running, and then try to solve this error. In the end, I lowered the version of Torch. Pay attention to Torchvision. I first lowered Torch=2.0.1, and then the Torchvision and Torch versions were incorrect. I also lowered Torchvision to 0.15.1, which will automatically install Torch=2.0.0. This will solve my problem

I deployed based on Docker Desktop in Windows 11. Will there be any environmental issues? What platform are you running the project on?

You can try my method. I have solved it now and can be used normally,If there are still any questions, you can send them out and take a look together

SEVENBAY commented 3 months ago

I just solved this problem. Please check if there are any Python errors on the project when it starts running, and then try to solve this error. In the end, I lowered the version of Torch. Pay attention to Torchvision. I first lowered Torch=2.0.1, and then the Torchvision and Torch versions were incorrect. I also lowered Torchvision to 0.15.1, which will automatically install Torch=2.0.0. This will solve my problem

I deployed based on Docker Desktop in Windows 11. Will there be any environmental issues? What platform are you running the project on?

You can try my method. I have solved it now and can be used normally,If there are still any questions, you can send them out and take a look together

when run the scripts, get error like this, do you kown why? (animate_draw) E:\pyproject\xianyuproject\AnimatedDrawings\examples>python image_to_animation.py drawings/garlic.png garlic_out Traceback (most recent call last): File "E:\pyproject\xianyuproject\AnimatedDrawings\examples\image_to_animation.py", line 6, in from annotations_to_animation import annotations_to_animation File "E:\pyproject\xianyuproject\AnimatedDrawings\examples\annotations_to_animation.py", line 4, in import animated_drawings.render ModuleNotFoundError: No module named 'animated_drawings'

SunshineList commented 3 months ago

I just solved this problem. Please check if there are any Python errors on the project when it starts running, and then try to solve this error. In the end, I lowered the version of Torch. Pay attention to Torchvision. I first lowered Torch=2.0.1, and then the Torchvision and Torch versions were incorrect. I also lowered Torchvision to 0.15.1, which will automatically install Torch=2.0.0. This will solve my problem

I deployed based on Docker Desktop in Windows 11. Will there be any environmental issues? What platform are you running the project on?

You can try my method. I have solved it now and can be used normally,If there are still any questions, you can send them out and take a look together

when run the scripts, get error like this, do you kown why? (animate_draw) E:\pyproject\xianyuproject\AnimatedDrawings\examples>python image_to_animation.py drawings/garlic.png garlic_out Traceback (most recent call last): File "E:\pyproject\xianyuproject\AnimatedDrawings\examples\image_to_animation.py", line 6, in from annotations_to_animation import annotations_to_animation File "E:\pyproject\xianyuproject\AnimatedDrawings\examples\annotations_to_animation.py", line 4, in import animated_drawings.render ModuleNotFoundError: No module named 'animated_drawings'

Look at the import animated_drawings.reader of examples\annotations_to_animation file Is there an error reported?

SEVENBAY commented 3 months ago

I just solved this problem. Please check if there are any Python errors on the project when it starts running, and then try to solve this error. In the end, I lowered the version of Torch. Pay attention to Torchvision. I first lowered Torch=2.0.1, and then the Torchvision and Torch versions were incorrect. I also lowered Torchvision to 0.15.1, which will automatically install Torch=2.0.0. This will solve my problem

After adjusting according to your instructions, I successfully ran it. Thank you!