We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
btw this check of device==cuda isn't working - but if I change the line in bold, it works
device==cuda
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') print('using device =', device) cfg_path = args.config ckpt_path = args.ckpt input_path = args.input out_path = args.out_path iters = int(args.niters) frame_rate = int(args.frame_rate) save_images = args.save_images print('using device =', device) **if device != 'cpu':** print('using cuda mode') anchor_resolution = 1024 * 512 anchor_memory = 1500 * 1024**2 anchor_memory_bias = 2500 * 1024**2 vram_avail = torch.cuda.get_device_properties(device).total_memory print("VRAM available: {:.1f} MB".format(vram_avail / 1024 ** 2)) else: print('using cpu mode') # Do not resize in cpu mode anchor_resolution = 8192*8192 anchor_memory = 1 anchor_memory_bias = 0 vram_avail = 1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
btw this check of
device==cuda
isn't working - but if I change the line in bold, it worksThe text was updated successfully, but these errors were encountered: