常见问题

本页收集了有关 "Flower 联邦学习 "常见问题的答案。

Can Flower run on Jupyter Notebooks / Google Colab?

是的,它可以!Flower 甚至还进行了一些底层优化,使其在 Colab 上运行得更好。下面是一个快速启动示例:

如何在 Raspberry Pi 上运行联邦学习?
Flower 是否支持安卓设备上的联邦学习?

是的,确实如此。请查看我们的 "博客文章 <https://flower.ai/blog/2021-12-15-federated-learning-on-android-devices-with-flower>`_" 或查看代码示例:

我可以将联邦学习与区块链结合起来吗?

当然可以。有关在区块链环境中使用 Flower 的可用示例列表,请点击此处:

I see unexpected terminal output (e.g.: □[32m□[1m) on Windows. How do I fix this?

If you see output (ANSI escape sequences or broken emojis) like this:

  • □[32m□[1m

  • □[0m□[96m□[1m

this is usually a terminal host issue. Make sure you have installed the latest Windows Terminal application (Microsoft's terminal app), and then run Flower commands there.

To quickly check whether your current PowerShell session is running in Windows Terminal:

echo $env:WT_SESSION

If this prints a value (for example, b4c5f2c8-...), you are in Windows Terminal. If it prints nothing, you are likely running in a non-Windows-Terminal host (for example, conhost), which can show raw ANSI escape codes or incorrect emoji rendering.