??? ???! ??? Python ?????? ???? ?? ?? ? ???? ?? ObjWatch ??
Jan 06, 2025 am 02:43 AM?? ?? ??
??????
/
objwatch
?? ObjWatch? ?? ??? ??? ??? ???? ?????? Python ????????.
ObjWatch
[ ??? | ??? ]
??
ObjWatch? ??? ????? ??? ? ????? ?????? ??? ??? Python ????????. ObjWatch? ?? ?? ? ??? ??? ?? ??? ??? ?????? ???? ?????? ?? ? ?? ???? ?? ? ??? ???? ?? ??, ?? ??? ? ???? ?? ?? ??? ?????.
ObjWatch? ?????? ??? ??? ?? ? ????. ??? ????? ??? ?????.
??
-
?? ?? ??: ??? ??? ??? ?? ?? ?? ??? ?? ?? ??? ????? ???????.
-
??? ?? ??: ???? ???? ??? ?? ??? ???? ????? ??? ?? ??? ?? ??? ?? Python? ?? ?? ??? ?????. ?? ??? ?? ?????? ?? ??????? ??? ???? ??? ????? ??? level="force"? ??? ? ????. level? "force"? ???? ObjWatch? ?? ?? ???? ???? print()? ????…
?? ??? ??
??? ????? ?? ???? ? ?? 12?? ???? ??? ?? ??? ???? ??? ?? ?? ??? ????? ?????. ?? ????? ?? ?? ???? ???? ????? ????. ?? ????? ????? ?? ????? ???? ?? ???? ??? ?? ??? ????? ????? ?? ???? ???. print ?? ???? ?? ??? ???? ??? ?? ??? ?? ??? ?? ?? ???. ?? ???? ???? ??? ??? ?????? ??? ??? ?? ? ???? ???? ??? ??????.
ObjWatch? ??????
ObjWatch? ??? ????? ??? ? ????? ?????? ??? ???????. ?? ?? ? ??? ??? ?? ??? ??? ???? ???? ?????? ?? ? ?? ???? ?? ? ??? ??? ?? ??? ?????.
?? ?? ?
pip install objwatch? ???? ?? ??? ? ????. ??? ?? ?? ??? ???? ???.
git clone https://github.com/aeeeeeep/objwatch cd objwatch pip install . python3 examples/example_usage.py
? ??? ???? ??? ?? ?? ??? ?????.
[2025-01-04 19:15:13] [DEBUG] objwatch: Processed targets: >>>>>>>>>> examples/example_usage.py <<<<<<<<<< [2025-01-04 19:15:13] [WARNING] objwatch: wrapper 'BaseLogger' loaded [2025-01-04 19:15:13] [INFO] objwatch: Starting ObjWatch tracing. [2025-01-04 19:15:13] [INFO] objwatch: Starting tracing. [2025-01-04 19:15:13] [DEBUG] objwatch: run main <- [2025-01-04 19:15:13] [DEBUG] objwatch: | run SampleClass.__init__ <- '0':(type)SampleClass, '1':10 [2025-01-04 19:15:13] [DEBUG] objwatch: | end SampleClass.__init__ -> None [2025-01-04 19:15:13] [DEBUG] objwatch: | run SampleClass.increment <- '0':(type)SampleClass [2025-01-04 19:15:13] [DEBUG] objwatch: | | upd SampleClass.value None -> 10 [2025-01-04 19:15:13] [DEBUG] objwatch: | | upd SampleClass.value 10 -> 11 [2025-01-04 19:15:13] [DEBUG] objwatch: | end SampleClass.increment -> None [2025-01-04 19:15:13] [DEBUG] objwatch: | run SampleClass.increment <- '0':(type)SampleClass [2025-01-04 19:15:13] [DEBUG] objwatch: | | upd SampleClass.value 11 -> 12 [2025-01-04 19:15:13] [DEBUG] objwatch: | end SampleClass.increment -> None [2025-01-04 19:15:13] [DEBUG] objwatch: | run SampleClass.increment <- '0':(type)SampleClass [2025-01-04 19:15:13] [DEBUG] objwatch: | | upd SampleClass.value 12 -> 13 [2025-01-04 19:15:13] [DEBUG] objwatch: | end SampleClass.increment -> None [2025-01-04 19:15:13] [DEBUG] objwatch: | run SampleClass.increment <- '0':(type)SampleClass [2025-01-04 19:15:13] [DEBUG] objwatch: | | upd SampleClass.value 13 -> 14 [2025-01-04 19:15:13] [DEBUG] objwatch: | end SampleClass.increment -> None [2025-01-04 19:15:13] [DEBUG] objwatch: | run SampleClass.increment <- '0':(type)SampleClass [2025-01-04 19:15:13] [DEBUG] objwatch: | | upd SampleClass.value 14 -> 15 [2025-01-04 19:15:13] [DEBUG] objwatch: | end SampleClass.increment -> None [2025-01-04 19:15:13] [DEBUG] objwatch: | run SampleClass.decrement <- '0':(type)SampleClass [2025-01-04 19:15:13] [DEBUG] objwatch: | | upd SampleClass.value 15 -> 14 [2025-01-04 19:15:13] [DEBUG] objwatch: | end SampleClass.decrement -> None [2025-01-04 19:15:13] [DEBUG] objwatch: | run SampleClass.decrement <- '0':(type)SampleClass [2025-01-04 19:15:13] [DEBUG] objwatch: | | upd SampleClass.value 14 -> 13 [2025-01-04 19:15:13] [DEBUG] objwatch: | end SampleClass.decrement -> None [2025-01-04 19:15:13] [DEBUG] objwatch: | run SampleClass.decrement <- '0':(type)SampleClass [2025-01-04 19:15:13] [DEBUG] objwatch: | | upd SampleClass.value 13 -> 12 [2025-01-04 19:15:13] [DEBUG] objwatch: | end SampleClass.decrement -> None [2025-01-04 19:15:13] [DEBUG] objwatch: end main -> None [2025-01-04 19:15:13] [INFO] objwatch: Stopping ObjWatch tracing. [2025-01-04 19:15:13] [INFO] objwatch: Stopping tracing.
???? ?? ??? ??? ??? ????.
# Using as a Context Manager with Detailed Logging with objwatch.ObjWatch(['examples/example_usage.py']): main() # Using the API with Simple Logging obj_watch = objwatch.watch(['examples/example_usage.py']) main() obj_watch.stop()
???? ???? API ??? ?? ??? ??? ? ????. ????? ??/example_usage.py ??? ?? ??? ?????. ?, ??/example_usage.py ?? ?? ??, ??? ?? ??? ??? ?? ?????. ? ??? ??? ??? ??? ?? ??? ?? ?? ??? ????? ?????? ? ??? ???. ??? ???? ??? ?? ?? ??? ?????.
- run: ?? ?? ??? ??? ??? ??? ?????.
- end: ?? ?? ??? ??? ??? ?? ?????.
- upd: ? ?? ??? ?????.
- apd: ??, ?? ?? ??? ?? ??? ??? ??? ???? ?????.
- pop: ??, ?? ?? ??? ?? ??? ???? ?? ??? ?????.
??? ??? ????? ? ??? ??? ????? ???? ? ?? ?????.
???? ??
ObjWatch? ?? ?????? ?????.
- ??(??): ????? ?? ?? ?????.
- ??_??(??, ??): ?????? ??? ?? ?? ??.
- ??(??, ?? ??): torch.distributed? ??? ? ??? GPU ??.
- ??(str, ??): ?? ??? ?? ?? ??
- output_xml(str, ?? ??): ???? ??? ???? ?? XML ??? ?????. ???? ?? ??? ??? XML ???? ???? ?? ???? ??? ? ????.
- level (str, ????): ?? ??(?: login.DEBUG, login.INFO, force ?).
- simple(bool, ?? ??): "DEBUG: {msg}" ???? ?? ?? ??? ??????.
- ??(FunctionWrapper, ?? ??): ?? ? ?? ??? ???? ?? ??? ?? ?????.
- with_locals(??, ?? ??): ?? ?? ?? ??? ?? ??? ?? ? ??? ??????.
- with_module_path(??, ?? ??): ??? ?? ?? ?? ?? ??? ???? ??? ?????.
?? ??: ??? ?? ?? ??
ObjWatch? FunctionWrapper ?? ?? ???? ????? ???? ??? ?? ??? ???? ?????? ?? ? ?? ??? ???? ??? ??? ? ????. FunctionWrapper? ?????? ???? ?? ???? ?? ??? ?? ??? ?? ??? ??? ? ????. ??? ??? ?? ?? ? ?? ?? ???? ?? ???? ????? ?????.
FunctionWrapper ???
FunctionWrapper ???? ???? ?? ? ?? ?? ???? ?????.
- wrap_call(self, func_name: str, ???: FrameType) -> ???:
? ???? ?? ?? ?? ? ?????. ?? ??? ?? ?? ? ?? ??? ??? ?? ????? ??? ?? ??? ??? ?????. ??? ???? ?? ??? ??, ??, ????? ? ??? ?????.
- wrap_return(self, func_name: str, result: Any) -> ???:
? ???? ?? ?? ? ?????. ?? ??? ??? ??? ??? ????. ?? ??? ??? ? ??? ??, ?? ?? ????? ? ??? ?????.
- wrap_upd(self, old_value: Any, current_value: Any) -> ??[str, str]:
? ???? ??? ????? ? ????? ?? ?? ?? ?? ????. ?? ?? ??? ???? ? ??? ? ???? ?? ?? ??? ???? ???? ? ????.
??? ??? ?? ??? ??? ?? Python ???? ?????.
TensorShapeLogger
??? ? ?? ????? ???? ??? ??? ?? ??? ????. ??? objwatch/wrappers.py ??? ????. ? ??? ??? ?? ?? ?? ?? ??? ???? ?? ? ??? ?? ??? ?? ??? ???? ?????. ?? ??? ?? ?????? ?? ??? ???? ? ?? ?????.
git clone https://github.com/aeeeeeep/objwatch cd objwatch pip install . python3 examples/example_usage.py
? ?? ??????? ??? ??? ??? ?????. ?? ?? ??? ?? ?? ??? ???? ????? ???? ?? ? ????. ? ??? ??? ???? ???? ?? ???? ??? ???? ????. TensorShapeLogger? ?? ?? ??? ????? ???? ??? ????? ????.
- ?? ??? ??? ???? ??: ?? ??? ???? ???? ?? ??? ???? ???? ?????.
- ?? ???? ???: ?? ??? ??? ???? ???? ??? ????? ?? ??? ??????.
- ??? ??? ??: ?? ??? ???? ???? ? ???? ??? ?? ?? ?? ??? ??? ? ????.
??? ?? ?? ?? ?
tests/test_torch_train.py ??? ???? ?? ????. ? ???? ???? ? ??? ?? ObjWatch? ???? ??? ???? PyTorch ?? ????? ?? ?? ???? ????.
??
?? ?? ??
ObjWatch? ??? ???? ??? ? ???? ??? ??? ?? ? ????. ??? ??? ? ?? ????? ???? ?? ?????.
? ?? ?? ??? ????. ??? ??? ? ??? ?????. ????? ????? ??? ???.
?????? ?? ?????? ????. ???? ?? ??? ??? ??? ???? ????? ??? ?????.
? ??? ??? ???! ??? Python ?????? ???? ?? ?? ? ???? ?? ObjWatch ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

???? Python ?? ?? ?????? ?? ????, "??? ?????, ?? ??"? ???? ??? ??? ??? ?? ??? ?????. 1. ???? ?? ? ??? ?? ?????. ?? ???? ?? ??? ???? ??? ? ? ????. ?? ??, Spoke () ?? ???? ??? ??? ?? ??? ?? ????? ?? ??? ??? ????. 2. ???? ?? ???? ??? ??? ?????? Draw () ???? ???? ????? ?? ???? ?? ??? ???? ??? ???? ?? ?? ?? ??? ????? ?? ?? ????? ?? ?????. 3. Python ?? ???? ???????. ?? ???? ??? ???? ?? ???? ??? ????? ??? ?? ???? ??? ???? ????. ??? ??? ??? ???? ? ??? "?? ??"??????. 4. ???? ? ???? ?? ??? ?????

?? ??? ??? ?? ? ? ?? ?? ??? ??? ?? ? ? ?? ?? ?????. 1. ?? ?? ??? ???? ??????, ??? ??? ???? ??? ?????. 2. ??? ?? ??? ?? ?? ???? ???? ??? ???? ???? ???? ? ????. 3. ?? ?? ?? ?? ?? ??? ??? ?? ?? ? ? ????? ?? ??? ????? ??????. 4. Args? *Kwargs? ???? ?? ?? ??? ?? ? ? ????? ???? ????? ?? ?????? ????? ???? ???? ?????? ???????.

???? __iter __ () ? __next __ () ???? ???? ?????. ???? ??? ? ??? ????, ?? ???? ?? ??? ??? ???? ?????. 1. ???? ?? () ?? ? ??? ??? ???? ? ?? ??? ?? ? ?? ???? ??? ????. 2. ???? ?? ??? ???? ??? ???? ???? ???? ???? ?? ???? ?????. 3. ???? ???? ?? ??? ?? ? ? ? ??? ?? ? ???????? ? ? ??? ?? ??? ??? ???? ?? ? ? ???? ??????. ?? : ??? ?? ???? ??? ???? ????. ???? ?? ?? ? ??? ?????? ???? ? ?? ?? ? ? ????.

??? ???? @ClassMethod ?????? ?? ????? ?? ? ??????. ? ?? ?? ??? ??? ?? (CLS)?? ??? ??? ?????? ???? ? ?????. ?? ????? ?? ?? ???? ??? ??? ??? ?? ????? ?? ?? ? ? ????. ?? ??, ?? ????? show_count () ???? ?? ? ?? ?? ?????. ??? ???? ?? ? ?? @ClassMethod ?????? ???? ??? ??? ???? ?? Change_var (new_value) ???? ?? ? ?? ?? ?? CLS? ???????. ??? ???? ???? ?? (?? ?? ??) ? ?? ??? (?? ?? ?? ??)? ??? ?? ??, ?? ??? ? ??? ?? ??? ?????. ???? ??? ??? ????.

API ??? ??? ??? ?? ??? ???? ???? ???? ????. 1. Apikey? ?? ??? ?? ????, ????? ?? ?? ?? URL ?? ??? ?????. 2. Basicauth? ?? ???? ??? Base64 ??? ??? ??? ??? ????? ?????. 3. OAUTH2? ?? Client_ID ? Client_Secret? ?? ??? ?? ?? ?? ??? BearEtroken? ???????. 4. ?? ??? ???? ?? ?? ?? ???? ????? ???? ?? ?? ? ????. ???, ??? ?? ??? ??? ???? ?? ??? ???? ???? ?? ?????.

Python? MagicMethods (?? Dunder ??)? ??? ??? ???? ? ???? ??? ????, ?? ??? ???? ????. 1. ??? ??, ??, ??? ?? ?? ?? ?? ??? ?? ? ? ????. 2. ???? ?? ??? ?? ??? ? ?? (__init__, __repr_, __str__), ?? ?? (__add__, __sub__, __mul__) ? ?? ?? (__eq__, ___LT__); 3. ??? ??? ? ??? ??? ??? ????? ??????. ?? ??, __repr__? ???? ??? ??? ??? ?????? ?? ???? ??? ????? ???????. 4. ???? ????? ????? ??? ??????.

pythonmanagesmemoryautomicallicallicallicallicallicallicallicallicallysingandagarbagecollector.referenceCountingTrackshowmanyvariablestrefertoanobject, whenthecountreacheszero, thememoryisfreed. ??? itcannothandlecircular -references, wheretwoobjectsferotherbuta

@property? ???? ?? ??? ??? ???? ???? ??????, ??? ??? ? ? ??? ?? ?? ?? ??? ?????. 1. @property ?????? ?? getter ???? ???? ??? ??? ????? ?? ?? ??? ?????. 2. ?? ?? ???? ?? .Setter? ???? ?? ??? ?? ? ? ????. .setter? ???? ??? ?? ?? ?????. 3. ?? ?? ??, ?? ?? ?? ?? ?? ? ?? ?? ?? ??? ??? ?? ??? ?????. 4.?? ??? ? ?? ??? ?? ??? ??? ?? ?? ?? ??? ??? ??? ??? ?????. 5. ???? ? ???? ??? ????? ???? ?? ???? ???? full_name ??? ?????.
