Results 8 issues of Datanny

不好意思,python新手,這邊有個概念不是很懂: class MusicSerializer(serializers.ModelSerializer): days_since_created = serializers.SerializerMethodField() def get_days_since_created(self, obj): return (now() - obj.created).days 我的理解是class MusicSerializer 繼承了serializers.ModelSerializer ,然後他利用他底下的method get_days_since_created 去回傳一個值。 物件obj 則是呼叫了music。 不理解的地方: 這個def 裡面放了參數obj,但我沒看到其他地方有呼叫這個method,他是怎麼可以運行的?

Hi, sorry for the bothering, but I'm facing the problem. All my accuracy during validation are 0 , that is really weird. Have you ever facing this problem during training?...

我是用版主提供的( https://github.com/WenmuZhou/DBNet.pytorch ) 做訓練 訓練出來模型大小為190mb 想請問大家是都怎調整的?只有幾個mb?

你好想請問, 我將訓練好的crnn模型轉onnx後, 模型結構如下: 可是運行predict後報報如下圖: 說input的尺寸不符, channel =3 那個還能理解, 頂多我丟進去的iamge改成grey, 可是的277的寬度要怎辦? 我依照版主提供的轉onnx 文章, 裡面提到 : inputs = torch.randn(1, 1, 32, 277).to(self.device) 看來onnx 是吃死的寬度? 還是哪裡理解有誤, 請幫忙解惑。謝謝

請問外層的 pgdata是否可以拿掉? 似乎沒用到 再來外層的redis-data對應到的是哪邊? 沒有寫出來是否代表不用對應?

Hi, thanks for your sharing . Recently I’ve tried to run on my iPhone 7, but it is very slow for the HED model. Does there have any way to...

## Summary - add missing `utf-8` in encoding headers for `main.py` and `main_sky.py` ## Testing - `python3 -m py_compile $(git ls-files '*.py')` ------ https://chatgpt.com/codex/tasks/task_e_683fd6e6da348329814f0527510d2715

codex

## Summary - standardize Python encoding comments - clean up __init__ - fix `raw_input` call in stream.py - ensure files end with newline ## Testing - `python -m py_compile main.py...

codex