Skip to content

Commit 583f2bd

Browse files
committed
Remove UTF-8 byte order markers (BOMs)
BOMs barf on UTF-8 decoding within PyTorch: File "D:\Soft\Miniconda3\lib\site-packages\torch\utils_cpp_extension_versioner.py", line 16, in hash_source_files hash_value = update_hash(hash_value, file.read()) UnicodeDecodeError: 'gbk' codec can't decode byte 0xbf in position 2: illegal multibyte sequence Should fix #10, #14
1 parent 0cbee74 commit 583f2bd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+67
-67
lines changed

avg_spectra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# NVIDIA CORPORATION and its licensors retain all intellectual property
44
# and proprietary rights in and to this software, related documentation

calc_metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# NVIDIA CORPORATION and its licensors retain all intellectual property
44
# and proprietary rights in and to this software, related documentation

dataset_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# NVIDIA CORPORATION and its licensors retain all intellectual property
44
# and proprietary rights in and to this software, related documentation

dnnlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# NVIDIA CORPORATION and its licensors retain all intellectual property
44
# and proprietary rights in and to this software, related documentation

dnnlib/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# NVIDIA CORPORATION and its licensors retain all intellectual property
44
# and proprietary rights in and to this software, related documentation

gen_images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# NVIDIA CORPORATION and its licensors retain all intellectual property
44
# and proprietary rights in and to this software, related documentation

gen_video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# NVIDIA CORPORATION and its licensors retain all intellectual property
44
# and proprietary rights in and to this software, related documentation

gui_utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# NVIDIA CORPORATION and its licensors retain all intellectual property
44
# and proprietary rights in and to this software, related documentation

gui_utils/gl_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# NVIDIA CORPORATION and its licensors retain all intellectual property
44
# and proprietary rights in and to this software, related documentation

gui_utils/glfw_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# NVIDIA CORPORATION and its licensors retain all intellectual property
44
# and proprietary rights in and to this software, related documentation

0 commit comments

Comments
 (0)