Lavender105 / DFF

Code for Dynamic Feature Fusion for Semantic Edge Detection https://arxiv.org/abs/1902.09104
MIT License
221 stars 50 forks source link

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

Open JANGSOONMYUN opened 4 years ago

JANGSOONMYUN commented 4 years ago

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.

achreff commented 4 years ago

Hi try to replace with

from .lr_scheduler import LR_Scheduler

JANGSOONMYUN commented 4 years ago

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.

achreff commented 4 years ago

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

convnets commented 4 years ago

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 ?

Magic-123 commented 4 years ago

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

achreff commented 4 years ago

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

Magic-123 commented 4 years ago

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

renmmmmmm commented 4 years ago

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 ?

fabriziojpiva commented 1 year ago

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?)