Skip to content

Commit

Permalink
ads error handling loading shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
net-cscience-raphael committed Mar 4, 2024
1 parent ccab60f commit 043acd3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
# parser.add_argument('--port', type=int, help='Port to listen on.', default=8888)
#
# args = parser.parse_args()

model, preprocess_train , preprocess_val = open_clip.create_model_and_transforms('xlm-roberta-base-ViT-B-32', pretrained='laion5b_s13b_b90k')
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model = model.to(device)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public static String readShaderFile(String filePath) {
try {
str = new String(Files.readAllBytes(Paths.get(filePath)));
} catch (IOException ex) {
throw new RuntimeException("Error reading file");
throw new RuntimeException("Error reading file: " + filePath, ex);
}
return str;
}
Expand Down

0 comments on commit 043acd3

Please sign in to comment.