我正在使用 IntelliJ 来同步 Gradle。Gradle项目是由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) 我有一张带有像素类型的图片float32。我想在深度学习任务中保留图像中的浮动类型。
但是,据我所知,PIL 图像保存函数仅支持uint8数据类型,但我不想将我的float32数据转换为uint8,因为这会失去精度。
那么,还有其他选择吗?
我的图像有 3 个通道,我想保存为 jpg 格式文件。
注意:由于我正在做的深度学习任务的限制,我确实必须使用我所描述的内容。