BaseCls 是一个基于 MegEngine 的预训练模型库,帮助大家挑选或训练出更适合自己科研或者业务的模型结构。
文档地址:https://basecls.readthedocs.io
BaseCls 需要 Python >= 3.6。
BaseCls 依赖 MegEngine >= 1.6.0。
通过 pip
包管理器安装 BaseCls 的命令如下:
shell
pip3 install basecls --user
默认不会安装包括 MegEngine 在内的部分依赖,可以通过以下命令进行完整安装:
shell
pip3 install basecls[all] --user
对于 conda
用户, 可以选择通过在环境中先安装 pip
,再按照上述方式进行 BaseCls 的安装。
为保证模型性能的可追溯性,避免实验碎片化,建议通过包管理器安装。如果包管理器安装的方式无法满足你的需求,则可以尝试自行通过源码安装。
shell
pip3 install -r requirements.txt --user
shell
python3 setup.py develop --user
在 Python 中导入 BaseCls 验证安装成功并查看安装版本:
python
import basecls
print(basecls.__version__)
```shell
pip3 install -r requirements-dev.txt --user
pre-commit install ```
提交者需补充相应修改的单元测试。
```shell
git checkout -b new-feature
make lint make format
make unittest
git commit
```
Bumps minimist from 1.2.5 to 1.2.8.
Sourced from minimist's changelog.
v1.2.8 - 2023-02-09
Merged
- [Fix] Fix long option followed by single dash
[#17](https://github.com/minimistjs/minimist/issues/17)
- [Tests] Remove duplicate test
[#12](https://github.com/minimistjs/minimist/issues/12)
- [Fix] opt.string works with multiple aliases
[#10](https://github.com/minimistjs/minimist/issues/10)
Fixed
- [Fix] Fix long option followed by single dash (#17)
[#15](https://github.com/minimistjs/minimist/issues/15)
- [Tests] Remove duplicate test (#12)
[#8](https://github.com/minimistjs/minimist/issues/8)
- [Fix] Fix long option followed by single dash
[#15](https://github.com/minimistjs/minimist/issues/15)
- [Fix] opt.string works with multiple aliases (#10)
[#9](https://github.com/minimistjs/minimist/issues/9)
- [Fix] Fix handling of short option with non-trivial equals
[#5](https://github.com/minimistjs/minimist/issues/5)
- [Tests] Remove duplicate test
[#8](https://github.com/minimistjs/minimist/issues/8)
- [Fix] opt.string works with multiple aliases
[#9](https://github.com/minimistjs/minimist/issues/9)
Commits
- Merge tag 'v0.2.3'
a026794
- [eslint] fix indentation and whitespace
5368ca4
- [eslint] fix indentation and whitespace
e5f5067
- [eslint] more cleanup
62fde7d
- [eslint] more cleanup
36ac5d0
- [meta] add
auto-changelog
73923d2
- [actions] add reusable workflows
d80727d
- [eslint] add eslint; rules to enable later are warnings
48bc06a
- [eslint] fix indentation
34b0f1c
- [readme] rename and add badges
5df0fe4
- [Dev Deps] switch from
covert
tonyc
a48b128
- [Dev Deps] update
covert
,tape
; remove unnecessarytap
f0fb958
- [meta] create FUNDING.yml; add
funding
in package.json3639e0c
- [meta] use
npmignore
to autogenerate an npmignore filebe2e038
- Only apps should have lockfiles
282b570
- isConstructorOrProto adapted from PR
ef9153f
- [Dev Deps] update
@ljharb/eslint-config
,aud
098873c
- [Dev Deps] update
@ljharb/eslint-config
,aud
3124ed3
- [meta] add
safe-publish-latest
4b927de
- [Tests] add
aud
inposttest
b32d9bd
- [meta] update repo URLs
f9fdfc0
- [actions] Avoid 0.6 tests due to build failures
ba92fe6
- [Dev Deps] update
tape
950eaa7
- [Dev Deps] add missing
npmignore
dev dep3226afa
- Merge tag 'v0.2.2'
980d7ac
v1.2.7 - 2022-10-10
Commits
... (truncated)
6901ee2
v1.2.8a026794
Merge tag 'v0.2.3'c0b2661
v0.2.363b8fee
[Fix] Fix long option followed by single dash (#17)72239e6
[Tests] Remove duplicate test (#12)34b0f1c
[eslint] fix indentation3226afa
[Dev Deps] add missing npmignore
dev dep098873c
[Dev Deps] update @ljharb/eslint-config
, aud
9ec4d27
[Fix] Fix long option followed by single dashba92fe6
[actions] Avoid 0.6 tests due to build failuresThis version was pushed to npm by ljharb, a new releaser for minimist since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Bumps json5 from 1.0.1 to 1.0.2.
Sourced from json5's changelog.
Unreleased [code, diff]
v2.2.3 [code, diff]
- Fix: [email protected] is now the 'latest' release according to npm instead of v1.0.2. (#299)
v2.2.2 [code, diff]
- Fix: Properties with the name
__proto__
are added to objects and arrays. (#199) This also fixes a prototype pollution vulnerability reported by Jonathan Gregson! (#295).v2.2.1 [code, diff]
- Fix: Removed dependence on minimist to patch CVE-2021-44906. (#266)
v2.2.0 [code, diff]
- New: Accurate and documented TypeScript declarations are now included. There is no need to install
@types/json5
. (#236, #244)v2.1.3 [code, diff]
v2.1.2 [code, diff]
... (truncated)
a62db1e
1.0.2e0c23fe
docs: update CHANGELOG for v1.0.262a6540
fix: add proto to objects and arraysDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Bumps express from 4.17.1 to 4.18.2.
Sourced from express's releases.
4.18.2
- Fix regression routing a large stack in a single route
- deps: [email protected]
- deps: [email protected]
- perf: remove unnecessary object clone
- deps: [email protected]
4.18.1
- Fix hanging on large stack of sync routes
4.18.0
- Add "root" option to
res.download
- Allow
options
withoutfilename
inres.download
- Deprecate string and non-integer arguments to
res.status
- Fix behavior of
null
/undefined
asmaxAge
inres.cookie
- Fix handling very large stacks of sync middleware
- Ignore
Object.prototype
values in settings throughapp.set
/app.get
- Invoke
default
with same arguments as types inres.format
- Support proper 205 responses using
res.send
- Use
http-errors
forres.format
error- deps: [email protected]
- Fix error message for json parse whitespace in
strict
- Fix internal error when inflated body exceeds limit
- Prevent loss of async hooks context
- Prevent hanging when request already read
- deps: [email protected]
- deps: [email protected]
- deps: [email protected]
- deps: [email protected]
- deps: [email protected]
- deps: [email protected]
- Add
priority
option- Fix
expires
option to reject invalid dates- deps: [email protected]
- Replace internal
eval
usage withFunction
constructor- Use instance methods on
process
to check for listeners- deps: [email protected]
- Remove set content headers that break response
- deps: on-fi[email protected]
- deps: [email protected]
- deps: [email protected]
- Prevent loss of async hooks context
- deps: [email protected]
- deps: [email protected]
- Fix emitted 416 error missing headers property
- Limit the headers removed for 304 response
- deps: [email protected]
- deps: [email protected]
- deps: [email protected]
- deps: [email protected]
... (truncated)
Sourced from express's changelog.
4.18.2 / 2022-10-08
- Fix regression routing a large stack in a single route
- deps: [email protected]
- deps: [email protected]
- perf: remove unnecessary object clone
- deps: [email protected]
4.18.1 / 2022-04-29
- Fix hanging on large stack of sync routes
4.18.0 / 2022-04-25
- Add "root" option to
res.download
- Allow
options
withoutfilename
inres.download
- Deprecate string and non-integer arguments to
res.status
- Fix behavior of
null
/undefined
asmaxAge
inres.cookie
- Fix handling very large stacks of sync middleware
- Ignore
Object.prototype
values in settings throughapp.set
/app.get
- Invoke
default
with same arguments as types inres.format
- Support proper 205 responses using
res.send
- Use
http-errors
forres.format
error- deps: [email protected]
- Fix error message for json parse whitespace in
strict
- Fix internal error when inflated body exceeds limit
- Prevent loss of async hooks context
- Prevent hanging when request already read
- deps: [email protected]
- deps: [email protected]
- deps: [email protected]
- deps: [email protected]
- deps: [email protected]
- deps: [email protected]
- Add
priority
option- Fix
expires
option to reject invalid dates- deps: [email protected]
- Replace internal
eval
usage withFunction
constructor- Use instance methods on
process
to check for listeners- deps: [email protected]
- Remove set content headers that break response
- deps: [email protected]
- deps: [email protected]
- deps: [email protected]
- Prevent loss of async hooks context
- deps: [email protected]
- deps: [email protected]
... (truncated)
8368dc1
4.18.261f4049
docs: replace Freenode with Libera Chatbb7907b
build: [email protected]f56ce73
build: [email protected]24b3dc5
deps: [email protected]689d175
deps: [email protected]340be0f
build: [email protected]8.24.033e8dc3
docs: use Node.js name style644f646
build: [email protected]ecd7572
build: [email protected]Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Bumps decode-uri-component from 0.2.0 to 0.2.2.
Sourced from decode-uri-component's releases.
v0.2.2
- Prevent overwriting previously decoded tokens 980e0bf
https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.1...v0.2.2
v0.2.1
- Switch to GitHub workflows 76abc93
- Fix issue where decode throws - fixes #6 746ca5d
- Update license (#1) 486d7e2
- Tidelift tasks a650457
- Meta tweaks 66e1c28
https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.1
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Bumps minimatch from 3.0.4 to 3.1.2.
699c459
3.1.22f2b5ff
fix: trim pattern25d7c0d
3.1.155dda29
fix: treat nocase:true as always having magic5e1fb8d
3.1.0f8145c5
Add 'allowWindowsEscape' option570e8b1
add publishConfig for v3 publishes5b7cd33
3.0.620b4b56
[fix] revert all breaking syntax changes2ff0388
document, expose, and test 'partial:true' optionDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Bumps loader-utils from 1.4.0 to 1.4.2.
Sourced from loader-utils's releases.
v1.4.2
1.4.2 (2022-11-11)
Bug Fixes
v1.4.1
1.4.1 (2022-11-07)
Bug Fixes
Sourced from loader-utils's changelog.
1.4.2 (2022-11-11)
Bug Fixes
1.4.1 (2022-11-07)
Bug Fixes
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
megengine classification pretrained-models imagenet-classifier distributed-training