Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.6%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: jianmanlincjx
  • License: other
  • Language: Python
  • Default Branch: main
  • Size: 18.1 MB
Statistics
  • Stars: 51
  • Watchers: 1
  • Forks: 0
  • Open Issues: 1
  • Releases: 0
Created almost 2 years ago · Last pushed about 1 year ago
Metadata Files
Readme Contributing License Code of conduct Citation

README.md

Neural Scene Designer: Self-Styled Semantic Image Manipulation

Detailed inference and training procedures coming soon.

PDF 图像

Getting Started

Environment Requirement 🌍

NSD has been implemented and tested on Pytorch 1.12.1 with Python 3.9.

Clone the repo and setup environment

bash git clone https://github.com/jianmanlincjx/NSD.git conda create -n diffusers python=3.9 -y conda activate diffusers python -m pip install --upgrade pip pip install torch==1.12.1+cu116 torchvision==0.13.1+cu116 torchaudio==0.12.1 --extra-index-url https:// pip install -e . cd examples/NSD/ pip install -r requirements.txt

Data Download

NSD uses BrushData and BrushBench for training and testing. You can download the dataset through this link. At the same time, NSD proposes an indoor dataset for specialized self-styled editing of indoor scenes. This dataset is still being organized. Once the dataset is ready, you can organize it in JSON format within the "data" folder for training.

Running Scripts

Training 🤖

You can train with segmentation mask using the script:

```bash

sd v1.5

# sd v1.5 follow IP-adapter

accelerate launch --numprocesses 3 examples/NSD/trainNSD.py \ --pretrainedmodelnameorpath /data1/JM/code/NSD/pretrainmodel/stable-diffusion-v1-5 \ --outputdir runs/logs/brushnetsegmentationmask \ --resolution 512 \ --learningrate 1e-5 \
--trainbatchsize 2 \ --trackerprojectname NSD \ --reportto tensorboard \ --resumefromcheckpoint latest \ --checkpointingsteps 100000 \ --jsonfile /data1/JM/code/NSD/data/trainsmall.json \ --brushnetmodelnameorpath /data1/JM/code/NSD/pretrainmodel/segmentationmaskbrushnetckpt \ --mixedprecision 'fp16' \ --validationimage /data1/JM/code/NSD/data/datatrainsmall/image/000075.png \ --validationmask /data1/JM/code/NSD/data/datatrainsmall/mask/chair/000075.png \ --validationprompt 'A delicate sofa in the room. ' \ --validationsteps 1000 \ --imageencoderpath /data1/JM/code/NSD/pretrainmodel/image_encoder ```

Inference 🎨

bash python examples/NSD/test_NSD.py

🚨 Important Notes

  • Ensure all pre-trained models are correctly downloaded and placed in the specified locations
  • Training can be performed on a GPU with 24GB VRAM (e.g., RTX 3090, RTX 4090)
  • For inference, a GPU with 12GB VRAM is sufficient
  • CUDA 11.7 or higher is recommended

Owner

  • Login: jianmanlincjx
  • Kind: user

GitHub Events

Total
  • Issues event: 25
  • Watch event: 49
  • Issue comment event: 1
  • Push event: 14
  • Public event: 1
Last Year
  • Issues event: 25
  • Watch event: 49
  • Issue comment event: 1
  • Push event: 14
  • Public event: 1