真真夜夜
真真夜夜
### Is your feature related to a problem? _No response_ ### Describe the new feature https://github.com/kawre/leetcode.nvim.git ### Additional context _No response_
我发现你在外面又单独放了一个CAN模块,这可能是为了解决scoreblocks模块单独运行candemo.py时可能会报路径错误。其实我觉得这可能是编码的时候一个bug,按照我下面展示的修改,可以让你不需要单独放置一个CAN模块 - 在candemo.py - 第13行`self.params=load_config('./CAN/config.yaml')`改为`self.params=load_config('./scoreblocks/CAN/config.yaml')` - 第22行`load_checkpoint(self.model,None,'./CAN/checkpoints/demo.pth')`改为`load_checkpoint(self.model,None,'./scoreblocks/CAN/checkpoints/demo.pth')` - 在config.yaml中 - 第39行`word_path: './CAN/words_dict.txt'` 改为`word_path: './scoreblocks/CAN/words_dict.txt'` - 第78行`checkpoint: "./checkpoints/demo.pth"`改为`checkpoint: "./scoreblocks/checkpoints/demo.pth"` 之后在外部运行score.py时,只需要添加python解释器的路径就行 ``` import sys import os sys.path.append(os.getcwd()+'/scoreblocks/') ```
### Is your feature related to a problem? Please add this plugin [molten-nvim](https://github.com/benlubas/molten-nvim) ### Describe the new feature ### Additional context _No response_