DeRy
DeRy copied to clipboard
Unable to run the code by following the instruction
Thanks for providing interesting works and publicly releasing the code implementation.
I tried to follow the instructions and run the code, but I encountered some obstacles and got stuck (in stage 1).
-
mmcv
version: since the current default version is 1.7.0 (I then tried to downgrade to 1.5.0) -
DeRy/blocksize/block_meta.py
does not haveMODEL2MODULES
, and this leads to the import error inDeRy/blocksize/__init__.py
. -
DeRy/mmcls
andmmls
package are conflicted, and renaming theDeRy/mmcls
to other names can address this issue -
DeRy/mmcls/datasets/multi_label.py
is missing, and I tried to remove all parts that imported multi_label but some errors are still shown. - What should I assign for
$Config
for stage 1 (Model Zoo Preparation)?
Has anyone (or authors) successfully launched the training based on the current version?
This is an interesting work, and I would appreciate it if the authors can address some errors in the code and provide the launchable code 🙂
Thank you.
Dear @ycliu93 , Thank you so much for your interest in our work. I will address each of your question below:
- I just comment out the
mmcv
version requirement in themmcls/__init__.py
. My code should be OK for up-to-datemmcv
version. I ran all my experiments inmmcv-full==1.3.18
, but it should not be a problem now. - I remove the variable name
MODEL2MODULES
in the current files. I used to adopt theMODEL2MODULES
for my old code version, but I rename it toMODEL_BLOCKS
now. - I rename the folder name to
mmcls_addon
. Because I used to be running the code by installing themmcls
from source code and directly edit the source code, I did not notice the conflict when I clean my code. - Use the configs in
configs/compute_sim
. They are the configs to load the pertained weights frommmcls
ortimm
and compute the feature embeddings for the network partition.
So sorry for the inconvenience. Since I would like to make my code online as soon as possible. If you have any other questions, please feel free to contact me again.
By the way, I happened to be using your code for unbiased-teacher last year and find it very helpful. Thanks for your great work. 😊😊😊😊😊