Comments (1)
dump_to_file
and load_from_path
now have default implementation.
An example to register a handler.
@mmcv.register_handler('txt')
class TxtHandler1(mmcv.BaseFileHandler):
def load_from_fileobj(self, file):
return file.read()
def dump_to_fileobj(self, obj, file):
file.write(str(obj))
def dump_to_str(self, obj, **kwargs):
return str(obj)
mmcv.load('a.txt')
from mmcv.
Related Issues (20)
- [Docs]
- 有没有教程或文档说明如何使用、运行这个项目
- 未解析的引用 'torch_mlu' HOT 1
- AssertionError: MMCV==1.4.0 is used but incompatible. Please install mmcv>=2.0.0rc4, <2.2.0. HOT 1
- [Bug] RuntimeError: CUDA error: invalid configuration argument
- [Bug] getting RuntimeError: CUDA error: initialization error HOT 1
- [Bug] 图片使用cv2.imread()可以正常读取,在mmcv.imfrombytes()读取为None
- [Feature] mac m2 芯片,使用mim install mmcv-full==1.7.2,安装能成功,但使用时报mmcv._ext错误 HOT 1
- [Docs] Some additional infos might be necessary in the mmpose instalation process. HOT 4
- [Bug] ImportError: cannot import name 'convex_iou' from 'mmcv.ops'
- [Docs] mmcv 1.6.0 mmcv.cnn.bricks.conv_module.py class::ConvModule confusion in padding_mode
- [Bug] Windows packages on pypi.org do not contain _ext module HOT 5
- [Bug] Building wheels extremely slow on Google Colab (cu121, torch2.2.1) HOT 1
- Import Error when installing mmcv using pip and mim HOT 1
- 在mmcv的2.1.0版本中,没有mmcv.runner.utils这个文件夹了,要怎么使用mmcv.runner.utils.obj_from_dict导入数据呢? HOT 3
- [Bug] `using namespace` in header file
- [Bug] CUDA Error: illegal memory access HOT 1
- [Bug] AssertionError: MMCV==2.2.0 is used but incompatible. Please install mmcv>=2.0.0rc4, <2.2.0. HOT 20
- [Bug] ImportError: cannot import name 'CUDA_HOME' from 'mmcv.utils' (D:\mmaction2-master\venv2\lib\site-packages\mmcv\utils\__init__.py)
- [Bug] Installing mmcv in docker fails and show error: [Errno 2] No such file or directory: 'which' HOT 2
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 mmcv.