DFF icon indicating copy to clipboard operation
DFF copied to clipboard

ModuleNotFoundError: No module named 'encoding.utils.lr_scheduler_orig'

Open JANGSOONMYUN opened this issue 5 years ago • 9 comments

My system spec. i7-6700 RTX2070 8G 16 DDR4 RAM

Anaconda3 python 3.6 Cuda 10.0 (because RTX gpu only supports cuda 10.0 or higher.

Traceback (most recent call last): File "train.py", line 17, in import encoding.utils as utils File "/home/robotics/anaconda3/envs/dff/lib/python3.6/site-packages/encoding/init.py", line 14, in from . import nn, functions, dilated, parallel, utils, datasets File "/home/robotics/anaconda3/envs/dff/lib/python3.6/site-packages/encoding/utils/init.py", line 13, in from .lr_scheduler_orig import LR_Scheduler_orig ModuleNotFoundError: No module named 'encoding.utils.lr_scheduler_orig'

Hi, I have met this problem when I run train.py. I installed everything following INSTALL.md(https://github.com/Lavender105/DFF/blob/master/INSTALL.md). And also finished Preprocessing.

Please let me know how to solve it. Thank you.

JANGSOONMYUN avatar Jan 06 '20 07:01 JANGSOONMYUN

Hi try to replace with

from .lr_scheduler import LR_Scheduler

achreff avatar Jan 06 '20 16:01 achreff

Hi try to replace with

from .lr_scheduler import LR_Scheduler

I just copied the lr_scheduler.py file and renamed lr_scheduler_orig.py, and also changed class name to LR_Scheduler. Somehow it works.

And I did just same way as above for other required files which are xxx_orig.py.

Thank you.

JANGSOONMYUN avatar Jan 06 '20 17:01 JANGSOONMYUN

ok i have trained DFF on cityscapes if you have any probelm i can send to you the trained model DFF.pth

achreff avatar Jan 06 '20 18:01 achreff

ok i have trained DFF on cityscapes if you have any probelm i can send to you the trained model DFF.pth

@achreff Have you reproduced the result in cityscapes ?

convnets avatar Mar 25 '20 14:03 convnets

ok i have trained DFF on cityscapes if you have any probelm i can send to you the trained model DFF.pth

Excuse me, how do you generate the edge ground truth of cityscapes dataset? Can I contact you if it's convenient for you? 12

Magic-123 avatar Apr 08 '20 06:04 Magic-123

Hi,

You can dowload the files from https://github.com/Lavender105/DFF/tree/master/data/cityscapes-preprocess/code for both cityscapes abd SDB dataset. then you can generate the edge ground truth. just follow the steps described on the https://github.com/Lavender105/DFF

achreff avatar Apr 08 '20 16:04 achreff

Hi,

You can dowload the files from https://github.com/Lavender105/DFF/tree/master/data/cityscapes-preprocess/code for both cityscapes abd SDB dataset. then you can generate the edge ground truth. just follow the steps described on the https://github.com/Lavender105/DFF

Thank you for your answer

Magic-123 avatar Apr 12 '20 12:04 Magic-123

I have dowload the files from https://github.com/Lavender105/DFF/tree/master/data/cityscapes-preprocess/code for both cityscapes abd SDB dataset. then i can generate the edge ground truth. just follow the steps described on the https://github.com/Lavender105/DFF

but ican not open the edge ground truth ---aachen_000000_000019_gtFine_edge.png(8192KB),and the cityscape GT only 30KB. so ,can you tell me how to solve it ?

renmmmmmm avatar Aug 22 '20 08:08 renmmmmmm

ok i have trained DFF on cityscapes if you have any probelm i can send to you the trained model DFF.pth

Hey, could you please explain how you installed the virtual environment? It is impossible to make this repository work. I have tried multiple pytorch versions, old and new ones, none of them are working.

I would really appreciate if you could tell which pytorch, cuda, ninja versions you used. And how you installed them (using conda, pip or from source?)

fabriziojpiva avatar Feb 19 '23 13:02 fabriziojpiva