Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Astroy-me/Pytorch-GAN

Repository files navigation

Pytorch-GAN

使用Pytorch实现GAN 的过程


还在不断更新中......


Git上传文件代码到GitHub
  • 第一步:新建一个空文件夹,用来上传文件: 比如 demo(文件夹中可以包含要上传的项目)
  • 第二步:进入新建的文件夹demo目录下,点进去空文件夹,鼠标右键,使用Git Bash Here 打开
  • 第三步:输入 git init ,初始化,在本地创建一个Git仓库
  • 第四步:输入 git add . 将项目添加到暂存区:
    • 注意: . 前面有空格,代表添加所有文件
    • 若添加单个文件输入:git add xxxx.xx(xxxx.xx为文件名)
  • 第五步:输入 git commit -m "注释内容" 将项目提交到Git仓库
  • 第六步:输入 git branch -M main ,上传到 main 分支(这里必须确保Github上的创库已经建好)
  • 第七步:输入:git remote add origin https://github.com/xxxxx/test.git,和远程仓库连接
  • 第八步:输入 git push -u origin main 将本地项目推送到远程仓库(这一步可能提示:! [rejected] main -> main (fetch first) error: failed to push some refs to 'https://github.com/KeepTryingTo/Pytorch-GAN.git') 报错的原因是因为,每个仓库都有一个分支,也可以理解为大仓库里的小仓库,我们只是跟线上远程仓库有了关联,但没有跟线上远程仓库的某个分支关联,所以我 们没法提交 解决方案如下:
    • 终端输入 git pull --rebase origin main 即可跟刚创建的线上远程仓库的默认分支main关联
    • 再执行一下 git push -u origin main 即可将我们的项目文件上传到关联的线上远程文件中

About

使用Pytorch实现GAN 的过程

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • Python 90.3%
  • Jupyter Notebook 9.7%

AltStyle によって変換されたページ (->オリジナル) /