ModuleNotFoundError: No module named 'models.experimental'
时间: 2023-10-13 10:04:17 浏览: 154
ModuleNotFoundError: No module named 'models.experimental'错误通常是由于导入的模块路径不正确所致。根据引用和引用的解释,这个错误可能是由于没有正确导入'models'模块造成的。有可能是由于在导入'models'模块时,导入路径没有正确设置,导致找不到'models'模块。引用中提到了一种解决方法,可以尝试在导入'models.experimental'模块之前添加一个英文句点,修改为'from .models.experimental'。这样可以确保正确的导入路径,避免出现ModuleNotFoundError错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Pytorch: ModuleNotFoundError: No module named ‘models’的解决方法](https://blog.csdn.net/weixin_42538848/article/details/118603104)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [ModuleNotFoundError: No module named ‘models‘解决torch.load问题【天坑】](https://blog.csdn.net/m0_37591905/article/details/126649486)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文