lsun-room icon indicating copy to clipboard operation
lsun-room copied to clipboard

I have problems, in executing the code. Can i get some more guidance on running the code

Open devasenan134 opened this issue 1 year ago • 1 comments

Can you guide me through, running this code in my local Jupyter notebook from start to end.

devasenan134 avatar Jun 16 '23 14:06 devasenan134

Follow this! After this you might get error if you are running on cloud machine. (related to displaying the result, download the result instead)

git clone https://github.com/leVirve/lsun-room.git
conda create --name lsun
conda activate lsun
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
pip install -r requirements.txt [remove versions from requirements.txt]
mkdir checkpoint
cd checkpoint
gdown https://drive.google.com/uc?id=1aUJoXM9SQMe0LC38pA8v8r43pPOAaQ-a
cd ..
pip install loguru
cd trainer
git clone https://github.com/leVirve/OneGan.git
cd OneGan
pip install -e .
cd ..
cd ..
run this: python demo.py image --weight {checkpoint_path} --path {image_filepath}

HardikJain02 avatar Jun 19 '24 07:06 HardikJain02