You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a long time, I finally installed the program, but when I ran the test data, I found that this error returned me, can someone help me check the problem? I'm using a 4070 graphics card
But the connection is disconnected directly during program training, and no error message appears, what should I do?
code/data/fonts/HobeauxRococeaux-Sherman.ttf E
Done preprocess
Fetching 27 files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 27/27 [00:00<00:00, 26995.52it/s]
`text_config_dict` is provided which will be used to initialize `CLIPTextConfig`. The value `text_config["id2label"]` will be overriden.
initializing shape
saving init
T tensor(0) tensor(0)
start training
0%| | 0/500 [00:00<?, ?it/s]
(word) F:\python\Word-As-Image>
The points tensor is probably on the GPU, while self.faces[i] is on the CPU, so indexing won't work. To fix this, you need to make sure the self.faces[i] tensor is on the same device as the points tensor (either the CPU or GPU).
You can replace the following in the losses.py method def get_angles(self, points: torch.Tensor) -> torch.Tensor: with the new three lines of code which will fix the problem.
device = points.device # Get the device of the points tensor
triangles = points[self.faces[i].to(device)] # Move faces[i] to the same device as points
triangles_roll_a = points[self.faces_roll_a[i].to(device)] # Similarly move faces_roll_a[i]
After a long time, I finally installed the program, but when I ran the test data, I found that this error returned me, can someone help me check the problem? I'm using a 4070 graphics card
The text was updated successfully, but these errors were encountered: