Closed EAST-J closed 1 year ago
The folder is automatically created when you do the training, otherwise you have to create it yourself and place there the trained network.
On 2. Nov 2019, at 08:24, EAST-J notifications@github.com wrote:
Hello could you please tell me where can I found the folder cachedir/snapshots/ thanks
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/silviazuffi/smalst/issues/4?email_source=notifications&email_token=ABNYVFN3VLV72GNDJA6IZ5TQRUTKZA5CNFSM4JIDR3HKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HWJLRSQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNYVFKJ7VW7YX6QGNJITC3QRUTKZANCNFSM4JIDR3HA.
thank you for replying, but when i do the training, and when it calls Perceptual Loss,it reminds me that ImportError: No module named PerceptualSimilarity.models ,but i have done the bash external.sh, and in /home/venv_smalst/lib/python2.7/site-packages i can see the folder external. could you please tell me how to solve this thanks
You should check the import in the file perceptual_loss.py
from ..external.PerceptualSimilarity.models import dist_model
On 20. Nov 2019, at 11:50, EAST-J notifications@github.com wrote:
thank you for replying, but when i do the training, and when it calls Perceptual Loss,it reminds me that ImportError: No module named PerceptualSimilarity.models ,but i have done the bash external.sh, and in /home/venv_smalst/lib/python2.7/site-packages i can see the folder external. could you please tell me how to solve this thanks
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/silviazuffi/smalst/issues/4?email_source=notifications&email_token=ABNYVFOWKOBZW4BROZ53OQDQUUJAFA5CNFSM4JIDR3HKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEERR5FI#issuecomment-555949717, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNYVFI5LAYYMN7JWCVCFI3QUUJAFANCNFSM4JIDR3HA.
I think you shoul add an empty file init.py to the external directory
On 20. Nov 2019, at 11:50, EAST-J notifications@github.com wrote:
thank you for replying, but when i do the training, and when it calls Perceptual Loss,it reminds me that ImportError: No module named PerceptualSimilarity.models ,but i have done the bash external.sh, and in /home/venv_smalst/lib/python2.7/site-packages i can see the folder external. could you please tell me how to solve this thanks
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/silviazuffi/smalst/issues/4?email_source=notifications&email_token=ABNYVFOWKOBZW4BROZ53OQDQUUJAFA5CNFSM4JIDR3HKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEERR5FI#issuecomment-555949717, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNYVFI5LAYYMN7JWCVCFI3QUUJAFANCNFSM4JIDR3HA.
Thank you ,it worked,but I have another trouble when I run python -m smalst.experiments.smal_shape --zebra_dir='smalst/zebra_training_set' --num_epochs=200 --save_epoch_freq=20 --name=smal_net_0 --save_training_imgs=False --num_images=20000 --do_validation=True it shows: File "smalst/nnutils/smal_mesh_net.py", line 470, in init V,J,R = self.smal(torch.Tensor(betas).cuda(device=self.opts.gpu_id), torch.Tensor(pose).cuda(device=self.opts.gpu_id)) File "smalst/smal_model/smal_torch.py", line 96, in call Rs = torch.reshape( batch_rodrigues(torch.reshape(theta, [-1, 3]), opts=self.opts), [-1, 35, 3, 3]) AttributeError: 'module' object has no attribute 'reshape' shall you tell me how to solve this? My torch is 0.3.1
Can you check if you have the function in your version? Otherwise you could upgrade to a newer one or probably use view.
On 22. Nov 2019, at 16:11, EAST-J notifications@github.com wrote:
AttributeError: 'module' object has no attribute 'reshape'
I am sorry but I cannot reproduce your error
On 21. May 2020, at 13:13, Jingsong Xu notifications@github.com wrote:
I think you shoul add an empty file init.py to the external directory … <x-msg://67/#> On 20. Nov 2019, at 11:50, EAST-J @.***> wrote: thank you for replying, but when i do the training, and when it calls Perceptual Loss,it reminds me that ImportError: No module named PerceptualSimilarity.models ,but i have done the bash external.sh, and in /home/venv_smalst/lib/python2.7/site-packages i can see the folder external. could you please tell me how to solve this thanks — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#4 https://github.com/silviazuffi/smalst/issues/4?email_source=notifications&email_token=ABNYVFOWKOBZW4BROZ53OQDQUUJAFA5CNFSM4JIDR3HKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEERR5FI#issuecomment-555949717>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNYVFI5LAYYMN7JWCVCFI3QUUJAFANCNFSM4JIDR3HA https://github.com/notifications/unsubscribe-auth/ABNYVFI5LAYYMN7JWCVCFI3QUUJAFANCNFSM4JIDR3HA.
I met the same problem here. I can see under smalst/external/init.py has been there. But it still has this problem. ImportError: No module named PerceptualSimilarity.models
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/silviazuffi/smalst/issues/4#issuecomment-632028227, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNYVFN6VHLYH754XYFFFSLRSUEFHANCNFSM4JIDR3HA.
Hello could you please tell me where can I found the folder cachedir/snapshots/ thanks