Always Say Less Than Necessary
父母于一年教我们学会开口说话。 而我们要用一生的时间来学会闭嘴。 当你尝试使用语言来打动别人时,你说得越多,就显得越平庸,并且说得越多错得越多。 语带禅机差不多是这么个意思,说得越少,未知越多,而人类天性恐惧未知。 ...
父母于一年教我们学会开口说话。 而我们要用一生的时间来学会闭嘴。 当你尝试使用语言来打动别人时,你说得越多,就显得越平庸,并且说得越多错得越多。 语带禅机差不多是这么个意思,说得越少,未知越多,而人类天性恐惧未知。 ...
人人都是武大郎,开店的时候不喜欢店员比自己高。 刘邦那样可以驾驭比自己厉害的人太少你也遇不上。 绝大多数的领导都是武大郎,所以你在显示自己能力的时候,可能会让他们对你忌惮。 ...
2024 年 9 月 24 日,央行召开新闻发布会,宣布了新一轮经济刺激计划,计划向股市注入约 3000 亿元,并表示未来将继续追加资金。整体来看,这一策略似乎颇有章法,通过推高股市,意在引导居民直接进入金融市场投资。这一措施在短期内可能吸引大量资金流入市场,带来短期的繁荣。然而,效果的持久性存疑。 ...
2024-09-29 上午 10 点半才起床,把我的 blog 部署到了 github,改为使用 github action 来部署,感觉比以前两个仓库方便多了 上午 11 点开始放视频,所以接下来这一个小时基本上要浪费掉的。 ...
1:生成 SSH 密钥 在本地终端生成一个新的 SSH 密钥对: ssh-keygen -t rsa -b 4096 -C "[email protected]" 执行后,它会要求你指定文件名,按回车即可使用默认路径(~/.ssh/id_rsa),然后你会得到两个文件: ...
Foreword by Phil Town Warren Buffett says investing is buying an asset that produces cash flow for substantially less than it’s worth, like buying a $ 10 bill for $ 5. She finally did the math and discovered that unless she was willing to be a wage slave for her whole life, accumulating enough money to have choices was nearly impossible without investing. Introduction, or How to Use This Book a market crash is a natural part of the economic cycle that is going to happen whether I want it to or not. Chapter 1: January—Becoming Brave Rule #1 is Don’t Lose Money. Rule #2? Don’t Forget Rule #1. ...
Beginnings “If you reach for a star, you might not get one. But you won’t come up with a hand full of mud either.” Spend less than you earn—invest the surplus—avoid debt. Carrying debt is as appealing as being covered with leeches and has much the same effect. ...
使用 ncnn 布署 pytorch 模型到 Android 手机 编译 NCNN 时要打开显卡支持 vulkan 是针对 gpu 的 -DNCNN_VULKAN=ON MobileNetV3 編譯成 MT 時要打開 CMAKE 0091 特性 cmake_minimum_required(VERSION 3.20.0) cmake_policy(SET CMP0091 NEW) set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>") project("client-project") 训练 YOLO \Envs\torch\Scripts\activate.ps1 python train.py --batch 6 --workers 2 --imgsz 960 --epochs 300 --data "\Core\yaml\data.yaml" --cfg "\Core\yaml\cfg.yaml" --weights \Core\weights\best.pt --device 0 转换模型 from torch import nn import torch.utils.model_zoo as model_zoo import torch.onnx from libs import define from libs.net import Net from libs.dataset import ImageDataset import os test_data = ImageDataset(define.testPath,False) test_loader = torch.utils.data.DataLoader( test_data, batch_size=1, shuffle=True) device = torch.device("cuda" if torch.cuda.is_available() else "cpu") model = Net(out_dim=19).to(device) model.load_state_dict(torch.load( "./widget/last.pt" )) model.eval() def saveOnnx(): for data, target in test_loader: data, target = data.to(device), target.to(device) label = target.long() y = model(data) # Export the model torch.onnx.export(model, # model being run data, # model input (or a tuple for multiple inputs) "./widget/best.onnx", # where to save the model (can be a file or file-like object) export_params=True, # store the trained parameter weights inside the model file opset_version=10, # the ONNX version to export the model to do_constant_folding=True, # whether to execute constant folding for optimization input_names = ['input'], # the model's input names output_names = ['output'], # the model's output names dynamic_axes={'input' : {0 : 'batch_size'}, # variable lenght axes 'output' : {0 : 'batch_size'}}) traced_script_module = torch.jit.trace(model, data) return saveOnnx() # 转换 os.system("python -m onnxsim ./widget/best.onnx ./widgetbest-sim.onnx") os.system("./bin/onnx2ncnn.exe ./widget/best-sim.onnx ./widget/best.param ./widget/best.bin") os.system("./bin/ncnnoptimize.exe ./widget/best.param ./widget/best.bin ./widget/best-opt.param ./widget/best-opt.bin 65536") python .\export.py --weights weights/best.pt --img 960 --batch 1 --train python -m onnxsim best.onnx best-sim.onnx .\onnx2ncnn.exe best-sim.onnx best.param best.bin ncnnoptimize best.param best.bin best-opt.param best-opt.bin 65536 Git clone ncnn repo with submodule $ git clone https://github.com/Tencent/ncnn.git $ cd ncnn $ git submodule update --init Build for Linux / NVIDIA Jetson / Raspberry Pi Build for Windows x64 using VS2017 Build for macOS Build for ARM Cortex-A family with cross-compiling Build for Hisilicon platform with cross-compiling Build for Android Build for iOS on macOS with xcode Build for WebAssembly Build for AllWinner D1 Build for Loongson 2K1000 Build for Termux on Android Build for Linux Install required build dependencies: ...
手机端 PUSH 调试服务器到手机 adb push lldb-server /data/local/tmp chmod 755 /data/local/tmp/lldb-server 启动调试器服务 /data/local/tmp/lldb-server platform --listen "*:8888" --server 电脑端 端口转发 adb forward tcp:8888 tcp:8888 启动 LLDB .\lldb.exe 查看支持平台 platform list 选 ANDROID 平台 platform select remote-android 连接到手机 手机序列号: 9643e0ec0604 要换成当前调试的手机,使用 adb devices 查看序列号 platform connect connect://9643e0ec0604:8888 查看当前正在运行的进程 platform process list 附加上去 attach 9053 下断点 b send 跑起来 c 查看线程列表 thread list 查看调用栈 bt
你敬畏天理,他崇拜权威, 这是世界观不同; 你站在良知一边,他站在强者一边, 这是价值观不同; 你努力是为理想的生活, 他努力是做人上人, 这是人生观不同。 ...
1. 不要使用清华的源,要用阿里的,因为清华的源不全 2. 要使用 python launch.py 来安装一些 git 库 3. 要安装 requirements_versions.txt 带版本的 pip 库 4. 可以使用 python webui.py –port=7860 –server=0.0.0.0 –medvram 节省显存
一个人的行为习惯往往是长期养成的,并反映了其内在的价值观和信念。 一个人如果对待周围其他人都是友善、尊重和善良的,那么他/她也更有可能对你是友好的。反之,如果一个人对待周围其他人都是冷漠、自私和无礼的,那么他/她也更有可能对你是冷漠、自私和无礼的。 ...
别动上层人的利益,也别动下层人的观念,动上层人的利益犹如要他性命,动下层人的观念犹如刨他祖坟,而下层观念正是上层利益的来源。
Habits are the compound interest of self-improvement. The same way that money multiplies through compound interest, the effects of your habits multiply as you repeat them. They seem to make little difference on any given day and yet the impact they deliver over the months and years can be enormous. Highlight(yellow) - 1: The Surprising Power of Atomic Habits > Location 313 。人们做了一些小的改变,没有看到切实的结果,并决定停止。你会想,“我已经连续一个月每天都跑步了,为什么我的身体没有任何变化?一旦这种想法占据了上风,就很容易让好习惯被抛在一边。但为了产生有意义的改变,习惯需要持续足够长的时间才能突破这个高原——我称之为潜在潜力高原。 People make a few small changes, fail to see a tangible result, and decide to stop. You think, “I’ve been running every day for a month, so why can’t I see any change in my body?” Once this kind of thinking takes over, it’s easy to let good habits fall by the wayside. But in order to make a meaningful difference, habits need to persist long enough to break through this plateau—what I call the Plateau of Latent Potential. ...
成功的敌人不是失败,而是无趣与无聊,所以我们必须让它有趣。 做产品也是一样,必须一开始就有人用,有互动,有反馈,否则你坚持不下去的。一定要从一开始就有种子用户,开发中的时候就有一个群的人在期待。 ...
If you can’t say nice things, say nothing. Don’t put people down.
You don’t need to follow the daily news. True breaking news will find you, and the rest isn’t urgent or just doesn’t matter.
Habit of Financial Discipline: Become someone who practices disciplined financial management. This could involve habits such as creating a budget, tracking expenses, and avoiding unnecessary spending. Habit of Continuous Learning: Embrace the identity of a lifelong learner in the realm of personal finance. Make it a habit to read books, articles, and attend seminars on financial literacy and investment strategies. Habit of Savvy Investing: Cultivate the identity of an informed and strategic investor. Regularly set aside time to research investment opportunities and make informed decisions about where to invest your money. Habit of Goal Setting: Adopt the identity of a goal-oriented individual. Set clear financial goals and break them down into actionable steps. Regularly review and adjust your goals as needed. Habit of Networking and Relationship Building: Become someone who actively seeks out connections in the financial world. Network with professionals, mentors, and like-minded individuals who can provide guidance and opportunities. Habit of Entrepreneurial Thinking: Develop an identity that embraces entrepreneurial thinking. This might involve exploring side businesses, investments in startups, or other ventures that can diversify your income streams. Habit of Long-Term Planning: Embody the identity of a strategic planner. Develop a habit of thinking about your financial future in the long term, which includes retirement planning, estate planning, and more. Habit of Resilience: Cultivate the identity of a resilient individual who learns from setbacks. Financial success often involves facing challenges; adopting the habit of bouncing back and learning from failures is crucial. Habit of Generosity: Adopt the identity of someone who values giving back. Allocate a portion of your financial success to charitable causes, reinforcing the idea that financial success enables positive impact. Habit of Risk Management: Become someone who is conscious of financial risks. Develop habits of managing and mitigating risks through insurance, emergency funds, and thoughtful decision-making. Habit of Negotiation and Assertiveness: Embrace an identity of someone who advocates for their financial interests. Develop the habit of negotiating for better deals, raises, and terms. Remember, the key is to start small and build gradually. Choose one or a few of these habits that resonate with you and incorporate them into your daily routine. As you consistently practice these habits, they will become ingrained in your identity, leading to more sustainable and impactful changes in your financial life. Over time, these small identity-based habits can accumulate and lead to significant financial success. ...
当你在结果层面解决问题时,你只会暂时解决它们。为了取得良好的进步,你需要在系统层面解决问题。修复输入,输出将自行修复。
1 - Understanding human nature People are, above all, interested in themselves. Yup. Sorry. No matter who you are people will always be a thousand times more interested in themselves than in you. No judgment here. People’s actions are governed by self-interest. In every human relationship, your counterpart will always think or ask themselves “what’s in it for me?” Remember this question “What’s in it for me?” By the way, you’re asking this question in all your interactions too, consciously or subconsciously. ...