Giter Site home page Giter Site logo

aprilbian / relay_jscc Goto Github PK

View Code? Open in Web Editor NEW
13.0 1.0 2.0 103 KB

Source code for "Deep Joint Source-Channel Coding Over Cooperative Relay Networks", https://arxiv.org/abs/2211.06705

Python 100.00%
deepjscc relay-network semantic-communication

relay_jscc's Introduction

Relay_JSCC

Source code for "Deep Joint Source-Channel Coding Over Cooperative Relay Networks", https://arxiv.org/abs/2211.06705

Introduction

We propose three protocols for the simple cooperative relay network for the emerging semantic communications. The first two protocols, DeepJSCC-AF and DeepJSCC-DF resemeble the conventional amplify-and-forward (AF) and decode-and-forward (DF) protocols, while the third one, DeepJSCC-PF, is a simplification of DeepJSCC-DF protocol. In this conference version manuscript, we only consider the case where the source (S) node can't communicate during the relay-transmit period, the more general case (source can transmit during the entire cooperation period) will be explored in the journal version of this paper (coming soon). The system performance of the proposed scheme compared with the digital baseline is shown below.

Dependency

  • Python (3.6.9 or above)
  • numpy
  • pytorch 1.10.0+cu102
  • compressai (pip install compressai)

Reproduce

Type 'python run.py' to generate the results for DeepJSCC-AF and DeepJSCC-PF. For the DeepJSCC-DF, one should excute 'run_df.py'.

please alternate the parameters listed in 'get_args.py' for different scenarios. An example to train the DeepJSCC-PF model in the above figure is given below.

cout = 12; cfeat = 256; relay_mode = 'PF'; sr_link = 12.0; sd_link = 6.0; rd_link = 6.0; adapt = True; sr_rng = 0.0; sd_rng = 4.0; rd_rng = 4.0; resume = False

The training for DeepJSCC-AF and DF are similar and set 'resume' to True when testing these model.

Baseline

The baseline is optimistic as it always assumes the relay can perfectly decode the information from the source. With this assumption, the baseline is equivelant to the scenario where a source is transmitting to the destination using double the bandwidth. See the manuscript for more details.

Discussion

We discuss more about the DeepJSCC-DF protocol. A key issue for the semantic communication is that, unlike digital schemes which employ modern channel codes (e.g., Polar, LDPC, turbo codes) for forward error correction, it can't 'decode' (i.e., clear all the noise) at the relay. Even though the DeepJSCC-DF protocol recovers the image and re-encodes it, it is still effected by the noise between the source (S) and the relay (R), that's why when $SNR_{sr} = 12$ dB, the DeepJSCC-DF can only outperform AF by a small margin. Further efforts are needed to improve the gain of DeepJSCC-DF over AF which will be shown in our journal version.

relay_jscc's People

Contributors

aprilbian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.