Pin version for burn
zh4ngx opened this issue · comments
stable-diffusion-burn/Cargo.toml
Line 13 in 9e4d7bd
I'm running into issues building, and I think it has to do with an unpinned version of burn. Can you annotate this with the version you have in your Cargo.lock
?
I'm struggling with the same thing, I suspect:
error: failed to select a version for `torch-sys`.
... required by package `tch v0.14.0`
... which satisfies dependency `tch = "^0.14.0"` of package `burn-tch v0.11.0 (https://github.com/burn-rs/burn.git#58273a84)`
... which satisfies git dependency `burn-tch` of package `stablediffusion v0.1.0 (/home/ada/Projects/stable-diffusion-burn)`
versions that meet the requirements `^0.14.0` are: 0.14.0
the package `torch-sys` links to the native library `tch`, but it conflicts with a previous package which links to `tch` as well:
package `torch-sys v0.13.0`
... which satisfies dependency `torch-sys = "^0.13.0"` of package `tch v0.13.0`
... which satisfies dependency `tch = "^0.13.0"` of package `stablediffusion v0.1.0 (/home/ada/Projects/stable-diffusion-burn)`
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the links ='torch-sys' value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.