irfanICMLL / structure_knowledge_distillation

The official code for the paper 'Structured Knowledge Distillation for Semantic Segmentation'. (CVPR 2019 ORAL) and extension to other tasks.
BSD 2-Clause "Simplified" License
708 stars 103 forks source link

build error #36

Closed wl082013 closed 4 years ago

wl082013 commented 4 years ago

Hi , I am running your code according to the instructions of installing relevant libraries. However, I failed to built the 'ext', and I continuously encountered the error ' no such a from .ext import lib as _lib, ffi as _ffi'. I think my GPU setting is correct and I installed torch 0.4.1 and use gencode=arch=compute_61,code=sm_61 for 1080 Ti GPU. However, there is an error, and I don't know how to solve this problem, could you provide a help? Thanks image

irfanICMLL commented 4 years ago

It means you have multiple environments. Please make a clean environment and follow the instructions.

RonDen commented 3 years ago

Hi, I have encountered the same problems, can you give me some detail on how to solve this? I have tried to create a new conda evironment with python=3.5, torch==0.4, and successfully build the bn.o and ext.so files. But when I use command python test, I got the same error. I tried to delete the ext.so file and rebuild, but the same error again and again.

What you mean about the multiple environments, and how to clean the environment?