小编Wal*_*ker的帖子

Gradle 同步错误:SSL 对等点错误关闭

我正在使用 IntelliJ 来同步 Gradle。Gradle项目是由IntelliJ模板提供的,但错误仍然存​​在。

我尝试过:

  1. 使用Android Studio做同样的事情,同样的事情发生了。
  2. 重新安装IntelliJ,没用。
  3. 清除代理设置,没用。我过去确实使用过 VPN,但没有更改 IntelliJ 中的代理设置。

我的系统:MacOS Big Sur

所以这是错误:

FAILURE: Build failed with an exception.

* What went wrong:
Could not download junit-jupiter-api-5.7.0.jar (org.junit.jupiter:junit-jupiter-api:5.7.0)
Could not get resource 'https://repo.maven.apache.org/maven2/org/junit/jupiter/junit-jupiter-api/5.7.0/junit-jupiter-api-5.7.0.jar'.
Could not GET 'https://repo.maven.apache.org/maven2/org/junit/jupiter/junit-jupiter-api/5.7.0/junit-jupiter-api-5.7.0.jar'.
The server may not support the client's requested TLS protocol versions: (TLSv1.2). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.1/userguide/build_environment.html#gradle_system_properties
Remote host closed connection during handshake
SSL peer shut down incorrectly

* …
Run Code Online (Sandbox Code Playgroud)

java junit android intellij-idea gradle

7
推荐指数
1
解决办法
1万
查看次数

Python以三个通道和float类型保存图像(以避免丢失精度)

我有一张带有像素类型的图片float32。我想在深度学习任务中保留图像中的浮动类型。

但是,据我所知,PIL 图像保存函数仅支持uint8数据类型,但我不想将我的float32数据转换为uint8,因为这会失去精度。

那么,还有其他选择吗?

我的图像有 3 个通道,我想保存为 jpg 格式文件。

注意:由于我正在做的深度学习任务的限制,我确实必须使用我所描述的内容。

python image machine-learning python-3.x tensorflow

1
推荐指数
1
解决办法
1482
查看次数