Skip to content

Conversation

@treeizard
Copy link

What does this PR do?

  • Modified the code slightly to support Python 3.11+ and newer torch versions.

Changes Made:

Change 1: Updated the torch device selection from Variable to torch.device
e.g. self.device = torch.device("cuda" if args.cuda and torch.cuda.is_available() else "cpu")

Change 2: Resolved the error for variable retrieval
e.g. batch_class_loss.item()

Change 3: Optimized model.py
e.g. x = x.flatten(start_dim = 1)

Evidence of full pipeline running:

tf board

Additional Note:

  • Did not check for support on torch.distributed
  • Thank you so much for making this project.

@treeizard treeizard marked this pull request as ready for review April 9, 2025 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant