skgyu / SpaceshipNet

Code of Data-Free Knowledge Distillation via Feature Exchange and Activation Region Constraint
https://github.com/skgyu/SpaceshipNet
15 stars 0 forks source link

Code Questions #1

Open XieYitao0901 opened 12 months ago

XieYitao0901 commented 12 months ago

Why does my file directory have this' models model ' CFE MSARC_ Bases', but still reporting an error:ModuleNotFoundError: No module named 'models\model_CFE_mSARC_bases'

skgyu commented 12 months ago

Hello, could you please provide more detailed error information or screenshots?

  1. Based on your question, I would like to remind you that in addition to the 'model_CFE_mSARC_base.py' file needing to be in the 'models' directory, the 'model_CFE_mSARC_bases' directory also needs to be in the 'models' directory, and there should be a file called 'model_CFE_mSARC_base_V37.py' in the 'model_CFE_mSARC_bases' directory. This is very likely related to the cause of the error.

  2. If the above files or directories are not missing, I think you need to check the location where you execute the python command. You need to execute the python train/train_cvpr2023.py command in the 'SpaceshipNet' directory. At the same time, you may need to check if the environment variable 'PYTHONPATH' includes the current directory.

If you have any further questions, please feel free to ask.

XieYitao0901 commented 12 months ago

Hello, thank you for your reply. I have noticed all of the above issues but still made an error. Could you please provide your configuration environment or the latest code. And attach our error image in the attachment.

At 2023-11-24 17:06:41, "skgyu" @.***> wrote:

Hello, could you please provide more detailed error information or screenshots?

Based on your question, I would like to remind you that in addition to the 'model_CFE_mSARC_base.py' file needing to be in the 'models' directory, the 'model_CFE_mSARC_bases' directory also needs to be in the 'models' directory, and there should be a file called 'model_CFE_mSARC_base_V37.py' in the 'model_CFE_mSARC_bases' directory. This is very likely related to the cause of the error.

If the above files or directories are not missing, I think you need to check the location where you execute the python command. You need to execute the python train/train_cvpr2023.py command in the 'SpaceshipNet' directory. At the same time, you may need to check if the environment variable 'PYTHONPATH' includes the current directory.

If you have any further questions, please feel free to ask.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

skgyu commented 12 months ago

Hello, thank you for your reply. I have noticed all of the above issues but still made an error. Could you please provide your configuration environment or the latest code. And attach our error image in the attachment. At 2023-11-24 17:06:41, "skgyu" @.> wrote: Hello, could you please provide more detailed error information or screenshots? Based on your question, I would like to remind you that in addition to the 'model_CFE_mSARC_base.py' file needing to be in the 'models' directory, the 'model_CFE_mSARC_bases' directory also needs to be in the 'models' directory, and there should be a file called 'model_CFE_mSARC_base_V37.py' in the 'model_CFE_mSARC_bases' directory. This is very likely related to the cause of the error. If the above files or directories are not missing, I think you need to check the location where you execute the python command. You need to execute the python train/train_cvpr2023.py command in the 'SpaceshipNet' directory. At the same time, you may need to check if the environment variable 'PYTHONPATH' includes the current directory. If you have any further questions, please feel free to ask. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>

Does this sentence mean that you have put your error Image in the attachment? I can not find the error image. Perhaps there are some mistakes.

I have exported one of my conda environments (python 3.7) to 'SpaceshipNet_conda_requirements_py37.yml', which can be found here:

SpaceshipNet_conda_requirements_py37.zip

I will post the Python 3.8 environment later.

XieYitao0901 commented 12 months ago

Thank you for your reply. The incorrect image you mentioned above is indeed attached. If you haven't seen it, I will add it again and place it at the bottom of this email. Thank you again for providing the environment configuration. We will try again based on the configuration you provided. If there are any issues, we will contact you again. Thank you very much.

At 2023-11-24 20:56:08, "skgyu" @.***> wrote:

Hello, thank you for your reply. I have noticed all of the above issues but still made an error. Could you please provide your configuration environment or the latest code. And attach our error image in the attachment. At 2023-11-24 17:06:41, "skgyu" @.> wrote: Hello, could you please provide more detailed error information or screenshots? Based on your question, I would like to remind you that in addition to the 'model_CFE_mSARC_base.py' file needing to be in the 'models' directory, the 'model_CFE_mSARC_bases' directory also needs to be in the 'models' directory, and there should be a file called 'model_CFE_mSARC_base_V37.py' in the 'model_CFE_mSARC_bases' directory. This is very likely related to the cause of the error. If the above files or directories are not missing, I think you need to check the location where you execute the python command. You need to execute the python train/train_cvpr2023.py command in the 'SpaceshipNet' directory. At the same time, you may need to check if the environment variable 'PYTHONPATH' includes the current directory. If you have any further questions, please feel free to ask. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>

Does this sentence mean that you have put your error Image in the attachment? I can not find the error image. Perhaps there are some mistakes.

I have exported one of my conda environments (python 3.7) to 'SpaceshipNet_conda_requirements.yml', which can be found here:

SpaceshipNet_conda_requirements_py37.zip

I will post the Python 3.8 environment later.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

skgyu commented 11 months ago

Thank you for your reply. The incorrect image you mentioned above is indeed attached. If you haven't seen it, I will add it again and place it at the bottom of this email. Thank you again for providing the environment configuration. We will try again based on the configuration you provided. If there are any issues, we will contact you again. Thank you very much. At 2023-11-24 20:56:08, "skgyu" @.> wrote: Hello, thank you for your reply. I have noticed all of the above issues but still made an error. Could you please provide your configuration environment or the latest code. And attach our error image in the attachment. At 2023-11-24 17:06:41, "skgyu" @.> wrote: Hello, could you please provide more detailed error information or screenshots? Based on your question, I would like to remind you that in addition to the 'model_CFE_mSARC_base.py' file needing to be in the 'models' directory, the 'model_CFE_mSARC_bases' directory also needs to be in the 'models' directory, and there should be a file called 'model_CFE_mSARC_base_V37.py' in the 'model_CFE_mSARC_bases' directory. This is very likely related to the cause of the error. If the above files or directories are not missing, I think you need to check the location where you execute the python command. You need to execute the python train/train_cvpr2023.py command in the 'SpaceshipNet' directory. At the same time, you may need to check if the environment variable 'PYTHONPATH' includes the current directory. If you have any further questions, please feel free to ask. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.> Does this sentence mean that you have put your error Image in the attachment? I can not find the error image. Perhaps there are some mistakes. I have exported one of my conda environments (python 3.7) to 'SpaceshipNet_conda_requirements.yml', which can be found here: SpaceshipNet_conda_requirements_py37.zip I will post the Python 3.8 environment later. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>

We (including one co-author, one of my colleagues, and I) still do not see the attached error image on GitHub. I also can not find it in my received email (I can only find the text reply in it). Maybe it does not work if you attach it in an email reply. You can attach it to the reply directly via GitHub.