Coder Social home page Coder Social logo

liggss's Introduction

Jittor 风格及语义引导的风景图片生成赛题

| 概览

主要结果

| 主要结果

主要结果主要结果主要结果

简介

本项目包含了第三届计图挑战赛计图 - 风格及语义引导的风景图片生成赛题的代码实现。本项目的特点是:在Baseline的基础上添加了多阶段训练方法和分割模型,对baseline的掩码精度,风格相似度封指标有着很大的提升,是的生成的风景图像更加的美观。

运行环境

  • ubuntu 20.04 LTS
  • python >= 3.7
  • jittor >= 1.3.0

安装依赖

执行以下命令安装 python 依赖

pip install -r requirements.txt

预训练模型

模型名称:VGG19 使用数据集:ImageNet 代码链接:https://github.com/Jittor/jittor/blob/master/python/jittor/models/vgg.py 参数链接:jittorhub://vgg19.pkl

模型名称:vit_base_patch16_224_in21k 使用数据集:ImageNet 代码链接:在源代码中有使用jittor复现 参数链接:https://storage.googleapis.com/vit_models/augreg/B_16-i21k-300ep-lr_0.001-aug_medium1-wd_0.1-do_0.0-sd_0.0.npz

训练

单卡训练可运行以下命令:

python train.py

推理

生成测试集上的结果可以运行以下命令:

python test.py

致谢

此项目基于论文 Semantic Image Synthesis with Spatially-Adaptive Normalization 实现,部分代码参考了 jittor-gan

liggss's People

Contributors

wjc0602 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.