Skip to content

Commit

Permalink
Adjust displayStep
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed Apr 15, 2024
1 parent 9a98685 commit 8bbba79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opensplat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,17 @@ int main(int argc, char *argv[]){
const float splitScreenSize = result["split-screen-size"].as<float>();

torch::Device device = torch::kCPU;
int displayStep = 1;
int displayStep = 10;

if (torch::hasCUDA() && result.count("cpu") == 0) {
std::cout << "Using CUDA" << std::endl;
device = torch::kCUDA;
displayStep = 10;
} else if (torch::hasMPS() && result.count("cpu") == 0) {
std::cout << "Using MPS" << std::endl;
device = torch::kMPS;
}else{
std::cout << "Using CPU" << std::endl;
displayStep = 1;
}

try{
Expand Down

0 comments on commit 8bbba79

Please sign in to comment.