Skip to content

Commit a0a1df0

Browse files
committed
update train & infer
1 parent 48c5d00 commit a0a1df0

55 files changed

Lines changed: 7612 additions & 34 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.pylintrc

Lines changed: 64 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extension-pkg-allow-list=
3131
# be loaded. Extensions are loading into the active Python interpreter and may
3232
# run arbitrary code. (This is an alternative name to extension-pkg-allow-list
3333
# for backward compatibility.)
34-
extension-pkg-whitelist=cv2
34+
extension-pkg-whitelist=
3535

3636
# Return non-zero exit code if any of these messages/categories are detected,
3737
# even if score is above --fail-under value. Syntax same as enable. Messages
@@ -59,15 +59,16 @@ ignore-paths=
5959
# Emacs file locks
6060
ignore-patterns=^\.#
6161

62-
# List of module names for which member attributes should not be checked
63-
# (useful for modules/projects where namespaces are manipulated during runtime
64-
# and thus existing member attributes cannot be deduced by static analysis). It
65-
# supports qualified module names, as well as Unix pattern matching.
66-
ignored-modules=cv2
62+
# List of module names for which member attributes should not be checked and
63+
# will not be imported (useful for modules/projects where namespaces are
64+
# manipulated during runtime and thus existing member attributes cannot be
65+
# deduced by static analysis). It supports qualified module names, as well as
66+
# Unix pattern matching.
67+
ignored-modules=torch
6768

6869
# Python code to execute, usually for sys.path manipulation such as
6970
# pygtk.require().
70-
init-hook='import sys; sys.path.append(".")'
71+
#init-hook=
7172

7273
# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
7374
# number of processors available to use, and will cap the count on Windows to
@@ -86,9 +87,13 @@ load-plugins=
8687
# Pickle collected data for later comparisons.
8788
persistent=yes
8889

90+
# Resolve imports to .pyi stubs if available. May reduce no-member messages and
91+
# increase not-an-iterable messages.
92+
prefer-stubs=no
93+
8994
# Minimum Python version to use for version dependent checks. Will default to
9095
# the version used to run pylint.
91-
py-version=3.10
96+
py-version=3.12
9297

9398
# Discover python modules and packages in the file system subtree.
9499
recursive=no
@@ -99,10 +104,6 @@ recursive=no
99104
# source root.
100105
source-roots=
101106

102-
# When enabled, pylint would attempt to guess common misconfiguration and emit
103-
# user-friendly hints instead of false-positive error messages.
104-
suggestion-mode=yes
105-
106107
# Allow loading of arbitrary C extensions. Extensions are imported into the
107108
# active Python interpreter and may run arbitrary code.
108109
unsafe-load-any-extension=no
@@ -229,6 +230,11 @@ name-group=
229230
# not require a docstring.
230231
no-docstring-rgx=^_
231232

233+
# Regular expression matching correct parameter specification variable names.
234+
# If left empty, parameter specification variable names will be checked with
235+
# the set naming style.
236+
#paramspec-rgx=
237+
232238
# List of decorators that produce properties, such as abc.abstractproperty. Add
233239
# to this list to register other decorators that produce valid properties.
234240
# These decorators are taken in consideration only for invalid-name.
@@ -242,13 +248,17 @@ property-classes=abc.abstractproperty
242248
# variable names will be checked with the set naming style.
243249
#typevar-rgx=
244250

251+
# Regular expression matching correct type variable tuple names. If left empty,
252+
# type variable tuple names will be checked with the set naming style.
253+
#typevartuple-rgx=
254+
245255
# Naming style matching correct variable names.
246256
variable-naming-style=snake_case
247257

248258
# Regular expression matching correct variable names. Overrides variable-
249259
# naming-style. If left empty, variable names will be checked with the set
250260
# naming style.
251-
variable-rgx=(_?[a-z][A-Za-z0-9]{0,30})|([A-Z0-9]{1,30})
261+
#variable-rgx=
252262

253263

254264
[CLASSES]
@@ -285,34 +295,37 @@ exclude-too-few-public-methods=
285295
ignored-parents=
286296

287297
# Maximum number of arguments for function / method.
288-
max-args=7
298+
max-args=10
289299

290300
# Maximum number of attributes for a class (see R0902).
291-
max-attributes=20
301+
max-attributes=7
292302

293303
# Maximum number of boolean expressions in an if statement (see R0916).
294304
max-bool-expr=5
295305

296306
# Maximum number of branch for function / method body.
297-
max-branches=12
307+
max-branches=40
298308

299309
# Maximum number of locals for function / method body.
300-
max-locals=15
310+
max-locals=50
301311

302312
# Maximum number of parents for a class (see R0901).
303313
max-parents=7
304314

315+
# Maximum number of positional arguments for function / method.
316+
max-positional-arguments=10
317+
305318
# Maximum number of public methods for a class (see R0904).
306319
max-public-methods=20
307320

308321
# Maximum number of return / yield for function / method body.
309322
max-returns=6
310323

311324
# Maximum number of statements in function / method body.
312-
max-statements=300
325+
max-statements=150
313326

314327
# Minimum number of public methods for a class (see R0903).
315-
min-public-methods=1
328+
min-public-methods=2
316329

317330

318331
[EXCEPTIONS]
@@ -336,11 +349,13 @@ indent-after-paren=4
336349
# tab).
337350
indent-string=' '
338351

339-
# Maximum number of characters on a single line.
352+
# Maximum number of characters on a single line. Pylint's default of 100 is
353+
# based on PEP 8's guidance that teams may choose line lengths up to 99
354+
# characters.
340355
max-line-length=150
341356

342357
# Maximum number of lines in a module.
343-
max-module-lines=2000
358+
max-module-lines=1000
344359

345360
# Allow the body of a class to be on the same line as the declaration if body
346361
# contains single statement.
@@ -421,11 +436,22 @@ confidence=HIGH,
421436
# --enable=similarities". If you want to run only the classes checker, but have
422437
# no Warning level messages displayed, use "--disable=all --enable=classes
423438
# --disable=W".
424-
disable=too-many-arguments,
425-
too-many-locals,
426-
too-many-branches,
427-
protected-access
428-
439+
disable=raw-checker-failed,
440+
bad-inline-option,
441+
locally-disabled,
442+
file-ignored,
443+
suppressed-message,
444+
useless-suppression,
445+
deprecated-pragma,
446+
use-symbolic-message-instead,
447+
use-implicit-booleaness-not-comparison-to-string,
448+
use-implicit-booleaness-not-comparison-to-zero,
449+
C0116,
450+
C0114,
451+
W0621,
452+
E0601,
453+
W0718,
454+
R0801
429455

430456
# Enable the message, report, category or checker with the given id(s). You can
431457
# either give multiple identifier separated by comma (,) or put this option
@@ -443,9 +469,13 @@ timeout-methods=requests.api.delete,requests.api.get,requests.api.head,requests.
443469

444470
[MISCELLANEOUS]
445471

472+
# Whether or not to search for fixme's in docstrings.
473+
check-fixme-in-docstring=no
474+
446475
# List of note tags to take in consideration, separated by a comma.
447476
notes=FIXME,
448-
XXX
477+
XXX,
478+
TODO
449479

450480
# Regular expression of note tags to take in consideration.
451481
notes-rgx=
@@ -465,7 +495,7 @@ never-returning-functions=sys.exit,argparse.parse_error
465495
# Let 'consider-using-join' be raised when the separator to join on would be
466496
# non-empty (resulting in expected fixes of the type: ``"- " + " -
467497
# ".join(items)``)
468-
# suggest-join-with-non-empty-separator=yes
498+
suggest-join-with-non-empty-separator=yes
469499

470500

471501
[REPORTS]
@@ -481,10 +511,10 @@ evaluation=max(0, 0 if fatal else 10.0 - ((float(5 * error + warning + refactor
481511
# used to format the message information. See doc for all details.
482512
msg-template=
483513

484-
# Set the output format. Available formats are: text, parseable, colorized,
485-
# json2 (improved json format), json (old json format) and msvs (visual
486-
# studio). You can also give a reporter class, e.g.
487-
# mypackage.mymodule.MyReporterClass.
514+
# Set the output format. Available formats are: 'text', 'parseable',
515+
# 'colorized', 'json2' (improved json format), 'json' (old json format), msvs
516+
# (visual studio) and 'github' (GitHub actions). You can also give a reporter
517+
# class, e.g. mypackage.mymodule.MyReporterClass.
488518
#output-format=
489519

490520
# Tells whether to display a full report or only the messages.
@@ -586,7 +616,7 @@ ignored-classes=optparse.Values,thread._local,_thread._local,argparse.Namespace
586616
# of finding the hint is based on edit distance.
587617
missing-member-hint=yes
588618

589-
# The minimum edit distance a name should have in order to be considered a
619+
# The maximum edit distance a name should have in order to be considered a
590620
# similar match for a missing member name.
591621
missing-member-hint-distance=1
592622

@@ -630,4 +660,4 @@ init-import=no
630660

631661
# List of qualified module names which can have objects that can redefine
632662
# builtins.
633-
redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
663+
redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io

flow_matching/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the CC-by-NC license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
7+
__version__ = "1.0.9"

flow_matching/data/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)