Skip to content
New issue

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

updated workflow and entry_point #57

Merged
merged 1 commit into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/update-cloud-providers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ jobs:

- name: Upload cloud provider file to S3
run: |
aws s3 cp skyline-vscode/react-ui/src/schema/providers.json s3://deepview-explorer-public/vscode-cloud-providers/
aws s3 cp skyline-vscode/react-ui/src/schema/providers.json s3://deepview-explorer-public/vscode-cloud-providers/
aws s3api put-object-acl --bucket deepview-explorer-public --key vscode-cloud-providers/providers.json --acl public-read
6 changes: 3 additions & 3 deletions examples/dcgan2/entry_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
ngpu = 1
image_size = 32

def skyline_model_provider():
def deepview_model_provider():
if network == 'G':
net = DVAE.DCGAN_G(image_size, nz, nc, ngf, ngpu)
elif network == 'E':
Expand All @@ -19,7 +19,7 @@ def skyline_model_provider():
return net.cuda()


def skyline_input_provider(batch_size=1024):
def deepview_input_provider(batch_size=1024):
"""
target torch.Size([131072])
going into E torch.Size([128, 1, 32, 32])
Expand All @@ -40,7 +40,7 @@ def skyline_input_provider(batch_size=1024):
torch.randint(low=0, high=1000, size=output_shape).cuda(),
)

def skyline_iteration_provider(model):
def deepview_iteration_provider(model):
optimizer = torch.optim.SGD(model.parameters(), lr=1e-3)
def iteration(inputs, targets):
optimizer.zero_grad()
Expand Down