Comments (5)
可以试试在自己的mmpretrain根目录使用命令 pip install -v -e .
安装源码包,这样就可以使用自己的修改的源码了
https://mmpretrain.readthedocs.io/zh-cn/latest/get_started.html#id4
from mmpretrain.
我知道原因了,使用的安装命令是错误的,我使用的是python setup.py install,这个就是直接把库安装到里面,是静态的,所以每次都需要修改,教程中使用的是mim install -e ".[multimodal]"是动态的,生成.egg并指向此包,所以修改的时候就会动态的进行修改!
from mmpretrain.
python setup.py install
每次都要修改,指的是每次改完源码后都要运行一下python setup.py install吗
from mmpretrain.
python setup.py install
每次都要修改,指的是每次改完源码后都要运行一下python setup.py install吗
是的,因为我使用python setup.py install进行安装的时候是静态的,在修改代码后需要python里面的库是之前的,而使用pip install -e .是动态的,是生成一个egg包指向我的库,所以在修改的时候python中的库就会自动修改
from mmpretrain.
python setup.py install
每次都要修改,指的是每次改完源码后都要运行一下python setup.py install吗
是的,因为我使用python setup.py install进行安装的时候是静态的,在修改代码后需要python里面的库是之前的,而使用pip install -e .是动态的,是生成一个egg包指向我的库,所以在修改的时候python中的库就会自动修改
好的谢谢,我说自定义的模块怎么识别不到,我直接导入了
from mmpretrain.
Related Issues (20)
- [Feature] How to train a classifier by Linear Probing? HOT 1
- mobileone-s1 prediction scores are low HOT 1
- minigpt4权重来源确认
- [Bug] Why is deit-tiny's acc@1 different from the official result?
- [Bug] Error occurred while obtaining the model parameters
- about the loss of Mocov3, no decreasing?
- [Bug] error when training vit model with torch.compile
- [Bug] can not find AveragePrecision, MultiLabelMetric,MultiLabelMetric in mmengine HOT 1
- [Feature] dose open-mmlab has project related semi-supervision?
- [ModuleNotFoundError: No module named 'mmcv.cnn.utils.weight_init']
- [Bug] Error when training model - TypeError: BaseDataset.__init__() got an unexpected keyword argument 'split' HOT 5
- accuracy/top1 does not meet expectations, and the predicted results are in the same category
- SwinV2 for downstream HOT 1
- setting learning rate
- [Bug] SimMIM pretrained weights DO NOT MATCH the descriptions
- [Feature] 进行自监督学习
- [Feature] Support for pretaining convnext-v2
- [Feature] Training Support for Image Captioning
- [Bug] There is a problem with the setting of optim_wrapper and param_scheduler, which always leads to the best results in the top 100 epochs. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmpretrain.